From 6aabb9ca3820ad5b4b76528592866a57ef3c9b4b Mon Sep 17 00:00:00 2001 From: john Date: Wed, 10 Oct 2018 14:06:27 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Pman/Login.php b/Pman/Login.php index f2a68bc..aa01ab9 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -131,9 +131,10 @@ class Pman_Login extends Pman $u = DB_DataObject::factory($tbl); $s = DB_DataObject::Factory('core_setting'); if (!$u->isAuth()) { - - $this->jok(array('id' => 0, 'test' => 0)); // not logged in.. - exit; + $this->jok(array( + 'id' => 0, + 'disable_oath' => empty($s->lookup('core', 'two_factor_authentication')) ? 0 : 1 + )); // not logged in.. } //die("got here?"); $au = $u->getAuthUser(); -- 2.39.2