Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
What should I return to jsConnect when a user isn't logged in?
Hi,
Using the PHP library for jsConnect, I've managed to let authenticated users log in on the forums whenever they are logged in at the main site. However, when trying to return an array which would indicate that a visitor isn't logged in, by using this code, I still get the 'Or you can... Log in with MAINSITE' block (without an actual account to click below it) on my Vanilla login pop-up.
Is this working as intended, or am I returning the array in the wrong way?
Thanks in advance!
0
Best Answer
-
Todd Vanilla Staff
If the user isn't logged in to your main site then the link just goes to your own signin page so this should be correct. Just make sure you give the url of your site's signin page on the jsConnect page.
0
Answers
If the user isn't logged in to your main site then the link just goes to your own signin page so this should be correct. Just make sure you give the url of your site's signin page on the jsConnect page.
Ah, those fancy 'register' and 'sign-in' buttons never showed for me as I had indeed not provided the links to a login and registration page. Thank you very much!
hello friends,
i am facing problem some what like this,
when user log in my site forum redirect back to forum from my site login system but not display user name on forum, but user was logged in in my site.
and at the end redirected url at forum
http://localhost/vanilla/index.php?p=/
code file i had put that same as library file which one i am download from document..
any change needed in this code...
what is appropriate solution for it???