From: john Date: Tue, 9 Oct 2018 09:59:26 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=2638f2d36be95117811feb7e7f45f83cd358ae0a sync --- diff --git a/Pman/Login.php b/Pman/Login.php index 558b8e1..3a7dc7a 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -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; }