Skip to content

Commit

Permalink
OM PR 4212
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Sep 23, 2024
1 parent dcf9a69 commit 709c065
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ protected function _validateResetPasswordLinkToken($customerId, $resetPasswordLi
}

$customerToken = $customer->getRpToken();
if (strcmp($customerToken, $resetPasswordLinkToken) != 0 || $customer->isResetPasswordLinkTokenExpired()) {
if (is_null($customerToken) || strcmp($customerToken, $resetPasswordLinkToken) !== 0 || $customer->isResetPasswordLinkTokenExpired()) {
throw Mage::exception('Mage_Core', $this->_getHelper('customer')->__('Your password reset link has expired.'));
}
}
Expand Down

0 comments on commit 709c065

Please sign in to comment.