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