|
@@ -14,7 +14,8 @@ |
|
|
block discarded – undo |
|
14
|
14
|
$state = SimpleSAML_Auth_State::loadState($authStateId, 'yubikey:otp:init'); |
|
15
|
15
|
|
|
16
|
16
|
$error = false; |
|
17
|
|
-if (array_key_exists('otp', $_POST)) { // we were given an OTP |
|
|
17
|
+if (array_key_exists('otp', $_POST)) { |
|
|
18
|
+// we were given an OTP |
|
18
|
19
|
try { |
|
19
|
20
|
if (SimpleSAML\Module\yubikey\Auth\Process\OTP::authenticate($state, $_POST['otp'])) { |
|
20
|
21
|
SimpleSAML_Auth_State::saveState($state, 'yubikey:otp:init'); |
Please login to merge, or discard this patch.