cancel
Showing results for 
Search instead for 
Did you mean: 

Password Recovery Issues with 1.9.2.2

Password Recovery Issues with 1.9.2.2

Since the new update Magento 1.9.2.2 link for password recovery don't work :

 

  • Your password reset link has expired.

I have setup the admin field : 2 days  but I still have the same issue

 

2 REPLIES

Re: Password Recovery Issues with 1.9.2.2

I have set the email to default and copy the link from the new email template

 <a href="{{store url="customer/account/resetpassword/" _query_id=$customer.id _query_token=$customer.rp_token}}"><span>Reset Password</span></a>

But I still have the message :

 

Your password reset link has expired

In front i'm using Https ..

Re: Password Recovery Issues with 1.9.2.2

In the Log I have this error :

PHP Fatal error:  Call to a member function setCustomerId() on a non-object in /home/WwwBSD/*******/www/app/code/core/Mage/Customer/controllers/AccountController.php on line 756

and the line in the AccountController.php is :

 

 public function resetPasswordAction()
    {
        $resetPasswordLinkToken = (string) $this->getRequest()->getQuery('token');
        $customerId = (int) $this->getRequest()->getQuery('id');
        try {
            $this->_validateResetPasswordLinkToken($customerId, $resetPasswordLinkToken);
            $this->loadLayout();
            // Pass received parameters to the reset forgotten password form
            $this->getLayout()->getBlock('resetPassword')
                ->setCustomerId($customerId)
                ->setResetPasswordLinkToken($resetPasswordLinkToken);
            $this->renderLayout();
        } catch (Exception $exception) {
            $this->_getSession()->addError( $this->_getHelper('customer')->__('Your password reset link has expired.'));
            $this->_redirect('*/*/forgotpassword');
        }
    }