projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b00f4cb
)
sync
author
john
<john@roojs.com>
Thu, 11 Oct 2018 06:00:54 +0000
(14:00 +0800)
committer
john
<john@roojs.com>
Thu, 11 Oct 2018 06:00:54 +0000
(14:00 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
e9edd6d
..
9e4f42d
100644
(file)
--- 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');
$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) {
$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,
}
}
if (!$u->isAuth()) {
$this->jok(array(
'id' => 0,
- 'require_oath' => $
oath_require
_val
+ 'require_oath' => $
require_oath
_val
));
exit;
}
));
exit;
}