haha Posted November 2, 2013 Posted November 2, 2013 sometimes ago there i got an error of "aborted" when i log in. then now I got error of " login fail" i dont; know what to do with the problem. I have tried of change password with a tech tip in forum but nothing changed I got "login fail" still.
Martijn Geerts Posted November 2, 2013 Posted November 2, 2013 Check if your /site/assets/sessions/ folder has write access. 1
Alessio Dal Bianco Posted November 3, 2013 Posted November 3, 2013 (edited) Hello haha, one question: Have you reinstalled processwire and after transferred the templates + database ? The password are "salted" with a key defined in /site/config.php. This key must be the same as previous installation, if not you cannot login. /** * Installer: User Authentication Salt * * Must be retained if you migrate your site from one server to another * */ $config->userAuthSalt = '[alphanumeric string]'; Edited November 3, 2013 by Alessio Dal Bianco
haha Posted November 4, 2013 Author Posted November 4, 2013 Hello haha, one question: Have you reinstalled processwire and after transferred the templates + database ? The password are "salted" with a key defined in /site/config.php. This key must be the same as previous installation, if not you cannot login. /** * Installer: User Authentication Salt * * Must be retained if you migrate your site from one server to another * */ $config->userAuthSalt = '[alphanumeric string]'; no reinstallation. the Salt is excatly the same one
vxda Posted November 4, 2013 Posted November 4, 2013 (edited) Got same problem, thing is i downloaded newes dev version of pw, and now forget password plugin dont work. Usualy i just reseted password and it worked. If u have stable version of PW then all u need to do is reset your password when logging in. EDITED, Ok it works its my bad, previously you had to enter email address now system asking you for username. So ye best way to do this is to reset your password with this plugin, if u dont have it installed then i propose to install it on your local then copy database again to your destination server along with the module files. then when loging in u will have forget password button, enter email address or username (depends on your PW version). and wait for email. Change your password and thats it.I had same problem once now i allways isntall forget password module (its in core) Edited November 4, 2013 by vxda
haha Posted November 5, 2013 Author Posted November 5, 2013 Got same problem, thing is i downloaded newes dev version of pw, and now forget password plugin dont work. Usualy i just reseted password and it worked. If u have stable version of PW then all u need to do is reset your password when logging in. EDITED, Ok it works its my bad, previously you had to enter email address now system asking you for username. So ye best way to do this is to reset your password with this plugin, if u dont have it installed then i propose to install it on your local then copy database again to your destination server along with the module files. then when loging in u will have forget password button, enter email address or username (depends on your PW version). and wait for email. Change your password and thats it. I had same problem once now i allways isntall forget password module (its in core) is there any easy way? I still have my old host file back up. and password of pw with old host is still nice logged
vxda Posted November 5, 2013 Posted November 5, 2013 If u can install forget password module on your destination server then its easy. if u cant u have to install module on your local, then export it to your destination server when u do that, just try to login in on your destination server and use module to reset password. That allways works for me, and this is how im doing it.Meaby someone have better solution.
Soma Posted November 6, 2013 Posted November 6, 2013 You can install a module from code in a template for example. $modules->get("ModuleName") If not installed it will install it. But you can also just set a new password with code. $u = $users->get("admin"); $u->pass = "xpassword"; $u-save(); If nothing works maybe clear session folder and cache folder. 1
haha Posted November 6, 2013 Author Posted November 6, 2013 tried some ways none works for me just "This request was aborted because it appears to be forged."
ryan Posted November 9, 2013 Posted November 9, 2013 For Soma's code to reset the password above, you might also need to add a $u->of(false); to turn off output formatting, before doing the save. But the "request aborted" message you are getting makes me think there's a file system write problem and sessions aren't saving. Your actual /site/assets/ might be writable, but is everything in it writable? I'm guessing not. You probably need to do a recursive reset of the permissions in there so that the server can write to it. On a unix system where you wanted to make it globally readable/writable you'd do it like this: chmod -R og+rw /site/assets/ That may not be the appropriate setting for your server, so it's one to check with your host about if you want to ensure the best security.
Mark_invisu Posted June 25 Posted June 25 (edited) Hi, I'm currently having this issue, we use Login Register Pro for our front end another area to login to PW. I checked the permissions on /site/assets/sessions/ and checked the salts match. My method of migration was copying all the files from the previous domain (it's being moved to a new domain) uploading them to the new host, exporting the database from the old host to the new host and updated the database credentials in config.php. Password reset link doesn't seem to do anything. It's not producing anything in the error log and I'm at a bit of a loss as to what to try, any help would be greatly appreciated. Thanks, Mark Edited June 25 by Mark_invisu
BrendonKoz Posted June 25 Posted June 25 If you can, maybe try temporarily disabling Login Register Pro to default to the standard PW login mechanism. Use the PHP code-based password reset trick for a specific account that only you have access to, and see if you're able to successfully login. If you're able to log in, you may need to check the (WireMail) email settings on the new host, as well. If that works, try re-enabling Login Register Pro and see if that now works. If not, you might need to post in the Pro support forum for that module. (I don't use it, so I'm not sure what to suggest.)
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