Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Login loop?
One of my users posted this:
For some reason the only way I'm able to login to this place is to click the link I got in the email and login. When I just go to www.example.com it just keeps looping me to the login screen. No error message or anything. I know I'm typing my password right because I do get an error when I get it wrong.
Any ideas about what could be wrong here?
0
Comments
do you have any extension that plays in the login process?
Redirect($this->ReturnUrl, '302', '', 0);
for
exit('got to' . $this->ReturnUrl);
Then login and check which url it displays.
When I try to login it silently redirects back to the home page without logging in and still shows "Not signed in" at the top right.
I tried the 'testsession.php' test, and it says the session creation failed.
I tried changing line 78 of /library/People/People.Controller.SignInForm.php as suggested, and got: "http://localhost/vanilla/"
This is running on a local server via 'localhost'. Mac OS X 10.5.8, PHP 5.2.11 and MySql 5.0.82, in Safari, Firefox and Opera.
Any ideas?
I'm pretty sure it has already been covered somewhere, either in the doc or in the forum here.
Try searching for it, or wait somebody who remembers exactly .
I was running on my localhost server, but I had entered the cookie domain as the real domain of my live forum into the settings. (i.e. incorrectly as "www.mydomain.com").
I entered "localhost" into the COOKIE_DOMAIN in settings.php using a text editor, and then logins worked correctly.
However, if I then try to edit other settings on the "Application Settings" page from inside Vanilla, it complains when I press the "Save" button, with:
You did not supply a properly formatted value for Cookie domain
In the end I tried making the COOKIE_DOMAIN blank in the "Application Settings" page, and that let me save the other settings, and the cookie still seemed to work when I tried logging on again (i.e. I didn't get the original problem of it never letting me log on).
Not sure I understand what is exactly happening there, but it now works OK enough for me to continue benchmarking Vanilla!
We should remove that setting from the installation process; It's just confusioning and not that useful at that stage.