Jump to content
nackito

Password Regeneration

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)

Share this post


Link to post
Share on other sites

Sadly I didn't have the time to search for the bug/error so I bought a module to do the job.

Share this post


Link to post
Share on other sites

Hi,

 

I have the same error... have you solved it?

 

Thanks in advance,

Regards,

Share this post


Link to post
Share on other sites

Was this a new installation or an upgrade? If it was an upgrade did you use 1-click or how was it done?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Hi, 

 

I solved the problem... It is a bug with the name of the variable id_customer, if you change the name it works fine. 

I am with the mobile, when I take the pc I will put the code. 

Regards

Share this post


Link to post
Share on other sites

Hi There Capi666,

 

    I have the same issue when wanting to change the address. Would you tell us more on how you solved this?

 

Many thanks

Share this post


Link to post
Share on other sites

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,

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More