Jump to content

[Sloved] Customer Log In After Database Copy


Recommended Posts

So here is the situation I have installed the latest version of 1.4 from the SVN 1.4.9 and have made all mods from main shop and copied all product and other images to this install then copied database over and now both shops are identical with the exception of the version.

(changed _base_uri and other nec. config. changes in database)

 

When I went to log in to back office I had to have a new password emailed as the one I always use would not work after logging in I went to employees and changed back to original and all is well.

 

But here is the real issue I have a customer account I use for testing so I went to FO and tried to log in and the password fails and I can only assume this would be the case with the other customer accounts.

I did successfully reset the password using the forgot my password but how can I fix this so customers will not have issues with log in should I switch to the new store.

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

Each installation hashes the passwords in a unique way using the values created during install. So if you reinstall PrestaShop and restore the old database, logins will not work, front office or back office (yeah, I know. What they were thinking).

 

Hopefully you have a copy of your old /config/settings.inc.php somewhere. Copy the cookie key and IV values to the new settings.inc.php from the old one. Do the samefor Rijndael if you were using it.

 

If you don't have a copy, then everyone will have to do the I forgot my pass routine.

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...