Jump to content

Password Regeneration


nackito

Recommended Posts

Hello everyone!

I am using the latest version of prestashop (1.7.5.1) and not the default template. My problem is that everytime someone is trying to change the password from the "Forgot Password" link has the following error : "We cannot regenerate your password with the data you've submitted". It's a huge problem for me because I just migrate the customers and the most of them need to change their passwords. Any suggestions?

Thanks in advance!

Edited by nackito (see edit history)
Link to comment
Share on other sites

  • 5 months later...

Hi,

 

The code for solved the problem was:

- PasswordController.php --> I added a new variable (id_customer_ok)

                $this->context->smarty->assign([
                    'customer_email' => $customer->email,
                    'customer_token' => $token,
                    'id_customer' => $id_customer,
					'id_customer_ok' => $id_customer,
                    'reset_token' => Tools::getValue('reset_token'),
                ]);

- password-new.tpl --> I changed the variable id_customer for the new one (id_customer_ok)

          <input type="hidden" name="token" id="token" value="{$customer_token}">
          <input type="hidden" name="id_customer" id="id_customer" value="{$id_customer_ok}">
          <input type="hidden" name="reset_token" id="reset_token" value="{$reset_token}">

 

Regards,

  • Thanks 1
Link to comment
Share on other sites

  • 4 years later...
On 8/20/2019 at 9:22 AM, capi666 said:

Hi,

 

The code for solved the problem was:

- PasswordController.php --> I added a new variable (id_customer_ok)

                $this->context->smarty->assign([
                    'customer_email' => $customer->email,
                    'customer_token' => $token,
                    'id_customer' => $id_customer,
					'id_customer_ok' => $id_customer,
                    'reset_token' => Tools::getValue('reset_token'),
                ]);

- password-new.tpl --> I changed the variable id_customer for the new one (id_customer_ok)

          <input type="hidden" name="token" id="token" value="{$customer_token}">
          <input type="hidden" name="id_customer" id="id_customer" value="{$id_customer_ok}">
          <input type="hidden" name="reset_token" id="reset_token" value="{$reset_token}">

 

Regards,

 

 

does not work for me , prestashop 1.7.8.6

do you have any other idea to fix the bug pls ?

Link to comment
Share on other sites

On 8/17/2019 at 1:32 AM, nackito said:

Hello! 

It was a clean installation. I bought a module to solve it and since the module do the job I didn't try anything else.

which one did you buy pls ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...