From 157990cbe6abed1ce5251fbef930a545fe63f4e5 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 18 Oct 2018 12:13:42 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Pman/Login.php b/Pman/Login.php index 72ce4fe..74d81e2 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -131,7 +131,7 @@ class Pman_Login extends Pman $u = DB_DataObject::factory($tbl); $s = DB_DataObject::factory('core_setting'); $require_oath_val = 1; - $require_oath = $s->lookup('core', 'two_factor_authentication_requirement'); + $require_oath = $s->lookup('core', 'two_factor_auth_required'); if(!empty($require_oath)) { if($require_oath->val == 0) { $require_oath_val = 0; @@ -140,8 +140,7 @@ class Pman_Login extends Pman if (!$u->isAuth()) { $this->jok(array( - 'id' => 0, - 'require_oath' => 0 + 'id' => 0 )); exit; } -- 2.39.2