Nemipresta Posted June 19, 2018 Share Posted June 19, 2018 (edited) Hi, a rather strange problem: customers can register normally and enter a password. This password is hashed and saved in the database in ps_customers. However, when customers try to login again after their session was ended, the password is not accepted ("Your Authentication failed"). Customers can reset their password with the reset-link and are logged in afterwards. However, the new password won't be accepted the next time they try to login with their username and (new) password. https://www.prestashop.com/forums/topic/663544-customer-login-failed/describes exactly the same problem, however no solution was provided. Can anyone help? Admins can log in without any problems. Best regards, Christian Edited June 19, 2018 by Nemipresta (see edit history) 1 Link to comment Share on other sites More sharing options...
Nemipresta Posted June 20, 2018 Author Share Posted June 20, 2018 ... the reason for this problem was, that the customer table was migrated from an older version to 1.7 . In the newer versions, the password length was increased to 60 characters, the column was still set to 32 characters. 2 Link to comment Share on other sites More sharing options...
Ballet15 Posted February 6, 2020 Share Posted February 6, 2020 En 20/6/2018 a las 12:30 PM, Nemipresta dijo: ... the reason for this problem was, that the customer table was migrated from an older version to 1.7 . In the newer versions, the password length was increased to 60 characters, the column was still set to 32 characters. Hi, Thank you for your contribution, I have been search for a long time a solution for this trouble. Only a question... Can your old customers log in your page after the change? Link to comment Share on other sites More sharing options...
Nemipresta Posted February 8, 2020 Author Share Posted February 8, 2020 Hi Ballet15, yes, it worked but took a while and was rather complicated. Some weeks ago, I made another migration from Prestashop 1.6 data to 1.7 and followed a different, much easier approach: I exported the customer data as csv and imported it via the backoffice in Prestashop 1.7. Passwords are imported in this process, it is very important to disable $customer->passwd = $this->get('hashing')->hash($customer->passwd, _COOKIE_KEY_) in controllers/admin/AdminImportController.php though. And the value for COOKIE_KEY in the parameters file must be the same, I guess. 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