projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2185b55
)
Pman/Login.php
author
Alan Knowles
<alan@roojs.com>
Fri, 7 Dec 2018 02:34:44 +0000
(10:34 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 7 Dec 2018 02:34:44 +0000
(10:34 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
ee798c1
..
ddd353f
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-467,14
+467,14
@@
class Pman_Login extends Pman
// validate key..
if ($key != $u->genPassKey($t)) {
// validate key..
if ($key != $u->genPassKey($t)) {
-
return "invalid key"
;
+
$this->jerr("Passwor reset key is not valid")
;
}
$uu = clone($u);
$u->no_reset_sent = 0;
$u->update($uu);
if ($t < strtotime("NOW - 1 DAY")) {
}
$uu = clone($u);
$u->no_reset_sent = 0;
$u->update($uu);
if ($t < strtotime("NOW - 1 DAY")) {
-
return "expired"
;
+
$this->jerr("Password reset link has expired")
;
}
$this->showNewPass = implode("/", array($id,$t,$key));
return false;
}
$this->showNewPass = implode("/", array($id,$t,$key));
return false;