From c7bd80d0a332898d80bb48f33e399a0e57d64840 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 12 Oct 2018 10:18:48 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Pman/Login.php b/Pman/Login.php index 9e4f42d..f0c30aa 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -141,7 +141,7 @@ class Pman_Login extends Pman if (!$u->isAuth()) { $this->jok(array( 'id' => 0, - 'require_oath' => $require_oath_val + 'require_oath' => 0 )); exit; } @@ -327,7 +327,8 @@ class Pman_Login extends Pman } if( - !empty($u->oath_key) && + !empty($u->oath_key) && + empty($_REQUEST['oath_password']) && !$u->checkTwoFactorAuthentication($_REQUEST['oath_password']) ){ $this->jerror('LOGIN-BAD', 'You typed the wrong Username or Password (3)'); -- 2.39.2