projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87b618f
)
DataObjects/Core_person.php
author
Alan Knowles
<alan@roojs.com>
Thu, 17 Dec 2020 06:46:10 +0000
(14:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 17 Dec 2020 06:46:10 +0000
(14:46 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
412a52c
..
c20a4a2
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-552,7
+552,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
return $url.'/'.$this->id .'/'.$expires.'/'.
hash('sha256',
serialize(
- array($url, $expires, $this->passwd)
+ array($url, $expires, $
u->email,$
this->passwd)
)
);
@@
-567,8
+567,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
$u = DB_DataObject::Factory($this->tableName());
$u->get($id);
$url = implode("/", $bits);
- var_dump($url);
- if ($time < time()) {
+ if ($time < time()) {
return false;
}
if ($hash == hash('sha256', serialize(array('/'.$url, $time, $u->email, $u->passwd)))) {