Skip to content

Commit

Permalink
Update app/code/core/Mage/Customer/controllers/AccountController.php
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
  • Loading branch information
kiatng and sreichel authored Sep 23, 2024
1 parent 41bcd4d commit 0f65646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Customer/controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,8 @@ protected function _validateResetPasswordLinkToken($customerId, $resetPasswordLi
throw Mage::exception('Mage_Core', $this->_getHelper('customer')->__('Wrong customer account specified.'));
}

$customerToken = (string) $customer->getRpToken();
if (strcmp($customerToken, $resetPasswordLinkToken) !== 0 || $customer->isResetPasswordLinkTokenExpired()) {
$customerToken = $customer->getRpToken();
if (is_null(customerToken) || strcmp($customerToken, $resetPasswordLinkToken) !== 0 || $customer->isResetPasswordLinkTokenExpired()) {

Check failure on line 935 in app/code/core/Mage/Customer/controllers/AccountController.php

View workflow job for this annotation

GitHub Actions / PHPStan / Analyze (ubuntu-latest, 8.4)

Constant customerToken not found.
throw Mage::exception('Mage_Core', $this->_getHelper('customer')->__('Your password reset link has expired.'));
}
}
Expand Down

0 comments on commit 0f65646

Please sign in to comment.