Skip to content

Commit 0f65646

Browse files
kiatngsreichel
andauthored
Update app/code/core/Mage/Customer/controllers/AccountController.php
Co-authored-by: Sven Reichel <[email protected]>
1 parent 41bcd4d commit 0f65646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/core/Mage/Customer/controllers/AccountController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ protected function _validateResetPasswordLinkToken($customerId, $resetPasswordLi
931931
throw Mage::exception('Mage_Core', $this->_getHelper('customer')->__('Wrong customer account specified.'));
932932
}
933933

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

0 commit comments

Comments
 (0)