projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2646916
)
Pman/Login.php
author
john
<john@roojs.com>
Wed, 10 Oct 2018 06:06:27 +0000
(14:06 +0800)
committer
john
<john@roojs.com>
Wed, 10 Oct 2018 06:06:27 +0000
(14:06 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
f2a68bc
..
aa01ab9
100644
(file)
--- 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();