projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbc95b
)
DataObjects/Core_person.php
author
john
<john@roojs.com>
Tue, 9 Oct 2018 08:00:41 +0000
(16:00 +0800)
committer
john
<john@roojs.com>
Tue, 9 Oct 2018 08:00:41 +0000
(16:00 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
8792c90
..
bea9a90
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-784,7
+784,12
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
}
if(!empty($q['two_factor_auth_code'])) {
- $this->checkTwoFactorAuthentication($q['two_factor_auth_code']);
+
+ if($this->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
+ $this->jok('DONE');
+ }
+
+ $this->jerr('_invalid_auth_code');
}
if (!empty($q['query']['is_owner'])) {