Commit c284e9be authored by Alexandre Morin's avatar Alexandre Morin

Merge branch 'Support/2.5.X' into 'master'

Support/2.5.x

See merge request !349
parents b3423126 f6778017
Pipeline #5151 passed with stage
in 8 minutes and 43 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