rusjoan Posted April 26, 2014 Share Posted April 26, 2014 I published my site to remote host and now I can't login to admin with old credentials. All config and DB same as on my local. Tried to switch off "session fingerprint" and other stuff and it doesn't help me. Any suggestions? Thanks. Link to comment Share on other sites More sharing options...
adrian Posted April 27, 2014 Share Posted April 27, 2014 Try running this from a template file: $u = $users->get('admin'); // or whatever your username is $u->of(false); $u->pass = 'your-new-password'; $u->save(); to reset your password. 2 Link to comment Share on other sites More sharing options...
wayne Posted April 27, 2014 Share Posted April 27, 2014 I would also recommend to reset the password. And here is an additional explanation: Depending on the host's PHP version processwire uses the strongest available blowfish algorithm. So all passwords become "invalid" if the password algorithm changes. For example if your remote PHP version is above 5.3.7 and your local version is below that, processwire generates different password hashes. There could be other conditions for differing password hashes, but basically it's that. 3 Link to comment Share on other sites More sharing options...
rusjoan Posted April 27, 2014 Author Share Posted April 27, 2014 Thanks guys, so now I know a real reason of this issue. It's true that server and local PHPs has different versions Changing user password under other admin account helped me 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