forgotpass: use type strict comparison for reset token
This commit is contained in:
parent
5a7e7e1367
commit
37f41a5246
|
@ -940,7 +940,7 @@ class Handler_Public extends Handler {
|
|||
|
||||
if ($timestamp && $resetpass_token &&
|
||||
$timestamp >= time() - 15*60*60 &&
|
||||
$resetpass_token == $hash) {
|
||||
$resetpass_token === $hash) {
|
||||
|
||||
$sth = $this->pdo->prepare("UPDATE ttrss_users SET resetpass_token = NULL
|
||||
WHERE id = ?");
|
||||
|
|
Loading…
Reference in New Issue