From 2638f2d36be95117811feb7e7f45f83cd358ae0a Mon Sep 17 00:00:00 2001 From: john Date: Tue, 9 Oct 2018 17:59:26 +0800 Subject: [PATCH] sync --- Pman/Login.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2