1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11327] Update tests to reflect changes

PHPBB3-11327
This commit is contained in:
Marc Alexander
2019-08-10 21:18:55 +02:00
parent cefdf8bf19
commit fa5a0d5e21
2 changed files with 62 additions and 35 deletions

View File

@@ -220,7 +220,7 @@ class reset_password
}
// Do not create multiple valid reset tokens
if (!empty($user_row['reset_token']) && (int) $user_row['reset_token_expiration'] <= (time() + $this->config['reset_token_lifetime']))
if (!empty($user_row['reset_token']) && (int) $user_row['reset_token_expiration'] >= time())
{
trigger_error($message);
}
@@ -239,7 +239,7 @@ class reset_password
$sql_ary = [
'reset_token' => $reset_token,
'reset_token_expiration' => time() + $this->config['reset_token_lifetime'],
'reset_token_expiration' => strtotime('+1 day'),
];
$sql = 'UPDATE ' . $this->tables['users'] . '