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.
loggin in users programmaticaly
Milingo
New
Hello, on version 1.6 of vanilla I used to have something like:
function login_to_lussumo($Username, $Password, $path){
use_forum();//use forum db require('/localhost/site/community/forum/appg/settings.php'); require('/localhost/site/community/forum/appg/init_ajax.php'); $UserMng = $Context->ObjectFactory->NewContextObject($Context, 'UserManager'); $UserMng->ValidateUserCredentials($Username, $Password, false); setcookie("lussumocookieone", $_SESSION['uid'], time()+2592000, "/"); setcookie("lussumocookietwo", $_SESSION['VerificationKey'], time()+2592000, "/"); use_site();//use site db return true;
}
it worked beautifully, as soon as one of the users signed in I would call login_to_lussumo with the parameters.
now it seems pretty difficult, I looked at the code but it's really over my head, is there an easy way achieve something as easy as it used to be?
I really don't need jsconnect as the user is already logged in to the main site.
thank you!
0