sync
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 09:59:26 +0000 (17:59 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 09:59:26 +0000 (17:59 +0800)
Pman/Login.php

index 558b8e1..3a7dc7a 100644 (file)
@@ -314,7 +314,10 @@ class Pman_Login extends Pman
             exit;
         }
         
-        if(!empty($u->oath_key) && !$u->checkTwoFactorAuthentication(trim($_REQUEST['oath_password'],"\x10"))){
+        if(
+            !empty($u->oath_key) && 
+            !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'])
+        ){
             $this->jerror('LOGIN-BAD', 'You typed the wrong Username or Password  (3)');
             exit;
         }