nackito Posted March 7, 2019 Share Posted March 7, 2019 (edited) 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 March 7, 2019 by nackito (see edit history) Link to comment Share on other sites More sharing options...
nackito Posted March 8, 2019 Author Share Posted March 8, 2019 Sadly I didn't have the time to search for the bug/error so I bought a module to do the job. Link to comment Share on other sites More sharing options...
capi666 Posted August 12, 2019 Share Posted August 12, 2019 Hi, I have the same error... have you solved it? Thanks in advance, Regards, Link to comment Share on other sites More sharing options...
jetway Posted August 15, 2019 Share Posted August 15, 2019 Was this a new installation or an upgrade? If it was an upgrade did you use 1-click or how was it done? Link to comment Share on other sites More sharing options...
nackito Posted August 16, 2019 Author Share Posted August 16, 2019 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. Link to comment Share on other sites More sharing options...
capi666 Posted August 17, 2019 Share Posted August 17, 2019 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 Link to comment Share on other sites More sharing options...
Henrik41 Posted August 19, 2019 Share Posted August 19, 2019 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 Link to comment Share on other sites More sharing options...
capi666 Posted August 20, 2019 Share Posted August 20, 2019 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, 1 Link to comment Share on other sites More sharing options...
Henrik41 Posted August 20, 2019 Share Posted August 20, 2019 Many thanks Capi. Very Useful. Link to comment Share on other sites More sharing options...
ifs-net Posted January 21 Share Posted January 21 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 More sharing options...
ifs-net Posted January 21 Share Posted January 21 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now