projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92aef17
)
DataObjects/Core_person.php
author
edward
<edward@roojs.com>
Thu, 2 Nov 2017 12:10:30 +0000
(20:10 +0800)
committer
edward
<edward@roojs.com>
Thu, 2 Nov 2017 12:10:30 +0000
(20:10 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
558a1b0
..
4a1ab76
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-522,14
+522,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
function checkPassword($val)
{
if(!empty($this->oath_key)){
- $ret = $this->checkTwoFactorAuthentication($val);
-
- if(!$ret){
- print_R('error');
- exit;
- }
-
- print_r('true');exit;
+ return $this->checkTwoFactorAuthentication($val);
}
if (substr($this->passwd,0,1) == '$') {
@@
-1375,11
+1368,6
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
$password = exec($cmd);
- print_r(array(
- $password,
- $val
- ));
-
return ($password == $val) ? true : false;
}