From 6a46e561726aa0388b3c1d6e1e74bf6feac315db Mon Sep 17 00:00:00 2001 From: john Date: Thu, 11 Oct 2018 14:00:54 +0800 Subject: [PATCH] sync --- Pman/Login.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pman/Login.php b/Pman/Login.php index e9edd6d..9e4f42d 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -130,18 +130,18 @@ class Pman_Login extends Pman $u = DB_DataObject::factory($tbl); $s = DB_DataObject::factory('core_setting'); - $require_oath = 1; + $require_oath_val = 1; $require_oath = $s->lookup('core', 'two_factor_authentication_requirement'); if(!empty($require_oath)) { if($require_oath->val == 0) { - $oath_require_val = 0; + $require_oath_val = 0; } } if (!$u->isAuth()) { $this->jok(array( 'id' => 0, - 'require_oath' => $oath_require_val + 'require_oath' => $require_oath_val )); exit; } -- 2.39.2