projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a21380
)
Pman/Login.php
author
john
<john@roojs.com>
Thu, 18 Oct 2018 04:13:42 +0000
(12:13 +0800)
committer
john
<john@roojs.com>
Thu, 18 Oct 2018 04:13:42 +0000
(12:13 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
72ce4fe
..
74d81e2
100644
(file)
--- 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;
$u = DB_DataObject::factory($tbl);
$s = DB_DataObject::factory('core_setting');
$require_oath_val = 1;
- $require_oath = $s->lookup('core', 'two_factor_auth
entication_requirement
');
+ $require_oath = $s->lookup('core', 'two_factor_auth
_required
');
if(!empty($require_oath)) {
if($require_oath->val == 0) {
$require_oath_val = 0;
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(
if (!$u->isAuth()) {
$this->jok(array(
- 'id' => 0,
- 'require_oath' => 0
+ 'id' => 0
));
exit;
}
));
exit;
}