Source of file MockYubiValidateFalse.php
Size: 0,759 Bytes - Last Modified: 2021-12-24T06:47:50+00:00
/var/www/docs.ssmods.com/process/src/tests/mock/MockYubiValidateFalse.php
12345678910111213141516171819202122232425262728293031 | <?php namespace Firesphere\YubiAuth\Tests; use Yubikey\Response; use Yubikey\ResponseCollection; use Yubikey\Validate; class MockYubiValidateFalse extends Validate { public function check($otp, $multi = false) { $nonce = $this->generateNonce(); $result = new Response( [ 'h' => '', 'otp' => $otp, 'status' => 'REPLAYED_OTP', 'nonce' => $nonce, 'inputNonce' => $nonce, 'inputOtp' => $otp, 'host' => 'api.yubico.com', 'sl' => 25, 'timestamp' => time() ] ); return new ResponseCollection([$result]); } } |