Pman/Login.php
authorAlan Knowles <alan@roojs.com>
Fri, 12 Oct 2018 02:20:29 +0000 (10:20 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 12 Oct 2018 02:20:29 +0000 (10:20 +0800)
Pman/Login.php

index f0c30aa..72ce4fe 100644 (file)
@@ -328,9 +328,11 @@ class Pman_Login extends Pman
         
         if(
             !empty($u->oath_key) &&
-           empty($_REQUEST['oath_password']) &&
-            !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'])
-        ){
+           (
+               empty($_REQUEST['oath_password']) ||
+               !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'])
+           )
+        ) {
             $this->jerror('LOGIN-BAD', 'You typed the wrong Username or Password  (3)');
             exit;
         }