From: Alan Knowles Date: Fri, 12 Oct 2018 02:18:48 +0000 (+0800) Subject: Pman/Login.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=c7bd80d0a332898d80bb48f33e399a0e57d64840 Pman/Login.php --- 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)');