Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function check($otp, $multi = false) |
||
12 | { |
||
13 | $nonce = $this->generateNonce(); |
||
14 | $result = new Response( |
||
15 | [ |
||
16 | 'h' => '', |
||
17 | 'otp' => $otp, |
||
18 | 'status' => 'REPLAYED_OTP', |
||
19 | 'nonce' => $nonce, |
||
20 | 'inputNonce' => $nonce, |
||
21 | 'inputOtp' => $otp, |
||
22 | 'host' => 'api.yubico.com', |
||
23 | 'sl' => 25, |
||
24 | 'timestamp' => time() |
||
25 | ] |
||
26 | ); |
||
27 | |||
28 | return new ResponseCollection([$result]); |
||
29 | } |
||
31 |