Skip to content

Commit

Permalink
Merge branch 'main' into fix-4162
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Sep 25, 2024
2 parents 3d3ca77 + 4ddd7fb commit 7109017
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,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 7109017

Please sign in to comment.