haha Posted November 2, 2013 Share 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. Link to comment Share on other sites More sharing options...
Martijn Geerts Posted November 2, 2013 Share Posted November 2, 2013 Check if your /site/assets/sessions/ folder has write access. 1 Link to comment Share on other sites More sharing options...
haha Posted November 3, 2013 Author Share Posted November 3, 2013 permission of sessions folder is 777 Link to comment Share on other sites More sharing options...
Alessio Dal Bianco Posted November 3, 2013 Share 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 Link to comment Share on other sites More sharing options...
haha Posted November 4, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
vxda Posted November 4, 2013 Share 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 Link to comment Share on other sites More sharing options...
haha Posted November 5, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
vxda Posted November 5, 2013 Share 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. Link to comment Share on other sites More sharing options...
Soma Posted November 6, 2013 Share 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 Link to comment Share on other sites More sharing options...
haha Posted November 6, 2013 Author Share Posted November 6, 2013 tried some ways none works for me just "This request was aborted because it appears to be forged." Link to comment Share on other sites More sharing options...
ryan Posted November 9, 2013 Share 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. 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