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.
Calling the login function
Hello,
I'm trying to rig my site so when users sign into the main part of the site, they are automatically signed into my vanilla forum as well. Is there a login function in vanilla I can call... something like login($username, $password) ?
What file is it in, and what files do I need to include for it to work?
Happy new year!
Andrew
0
This discussion has been closed.
Comments
<?php include('appg/settings.php'); include('appg/init_ajax.php'); $UserMng = $Context->ObjectFactory->NewContextObject($Context, 'UserManager'); $UserMng->ValidateUserCredentials($Username, $Password, $Persistant); ?>
Where presistant is whether it should set a cookie or just as a session (the latter would end when the browser is closed).
Lemme see something
object->method()
object->method()