Fix determining invalid password reset link
This commit is contained in:
parent
d9ebe7e038
commit
b1f62e829b
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) {
|
||||||
->fetch();
|
->fetch();
|
||||||
|
|
||||||
if ($user) {
|
if ($user) {
|
||||||
if (time() <= $user['password_reset_valid_until']) {
|
if (time() > $user['password_reset_valid_until']) {
|
||||||
$database
|
$database
|
||||||
->query('UPDATE `users`
|
->query('UPDATE `users`
|
||||||
SET `password` = "' . sha1($_POST['password']) . '",
|
SET `password` = "' . sha1($_POST['password']) . '",
|
||||||
|
|
Loading…
Reference in a new issue