Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

loggin in users programmaticaly

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!

Tagged:
Sign In or Register to comment.