Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix password forget token check; fixes #5386
  • Loading branch information
cedric-anne authored and trasher committed Feb 15, 2019
1 parent d69f9b0 commit 5da9f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/user.class.php
Expand Up @@ -4392,7 +4392,7 @@ static function showPasswordForgetChangeForm($token) {
'FROM' => self::getTable(),
'WHERE' => [
'password_forget_token' => $token,
new \QueryExpression('NOW() < ADDDATE(password_forget_token_date, INTERVAL 1 DAY))')
new \QueryExpression('NOW() < ADDDATE(' . $DB->quoteName('password_forget_token_date') . ', INTERVAL 1 DAY)')
]
]);

Expand Down

0 comments on commit 5da9f99

Please sign in to comment.