Passed
Pull Request — master (#4)
by Tim
01:53 queued 23s
created
www/otp.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -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.