Verified Commit 19d0ec56 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

fix () : compare original timestamps instead of timestamp objects

parent d81e2c4a
Pipeline #5137 passed with stage
in 9 minutes and 6 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");
}
}
......
Supports Markdown
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