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.
Wordpress Integration - "Remember Me" causes login to fail
Hi,
I've been very successful integrating Vanilla with Wordpress (thanks Mark!) but there remains a small problem. I am using Vanilla's login system as the only login system for the entire site. When I try logging in on the Vanilla form -without- the "remember me" box checked, it works perfectly. However, if the box is checked when I sign in, the login fails and I am redirected to the primary forum page. If I try logging in through the Wordpress login system, the "remember me" function works.
Does the Wordpress integration cover changing Vanilla's "remember me" function to call Wordpress' "remember me" function? If not, how would I go about doing this?
Any help would be greatly appreciated. Thanks!
- Matt
0
This discussion has been closed.
Comments
One thing to take note of is the second line of my query: ADD `RoleID` int(2) NOT NULL DEFAULT '3', Notice that I gave it a default of 3? That is because the “member†RoleID in Vanilla is 3. This will make it so that new users added by the wordpress “create a new user†form will automatically be added to the member role on the forum. Also notice that I’ve made any field that doesn’t accept NULL have a default value. This way regular user operations in Wordpress won’t break because of Vanilla restrictions.
I think it might be something about the line
$Expire = $PersistentSession ? 31536000 : 0;
Load up yourforum\themes\people_signin_form_nopostback.php
Replace the remember me HTML list item with this (taken from WP form):
<li id="RememberMe"> <input name="rememberme" type="hidden" id="rememberme" value="forever" /> </li>
This will hide the box and always remember the person.