Commit f6778017 authored by Alexandre Morin's avatar Alexandre Morin

Merge branch 'hotfix/2.5.1' into 'Support/2.5.X'

fix () : compare original timestamps instead of timestamp objects

See merge request !348
parents d81e2c4a 19d0ec56
Pipeline #5149 passed with stage
in 8 minutes and 56 seconds
......@@ -175,7 +175,7 @@ trait ForgotAccountTrait
*/
private function checkOldToken($userAccount, $token)
{
if (empty($userAccount->tokenDate) || $userAccount->tokenDate != $token->data->tokenDate) {
if (empty($userAccount->tokenDate) || $userAccount->tokenDate->getTimestamp() != $token->data->tokenDate->getTimestamp()) {
throw new \core\Exception\ForbiddenException("Expired link");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment