Vanilla 3.3 SSO passing data
I just did a fresh install of version 3.3 and I am using the jsconnect SSO I use my own register form and login from my site, when they register they have to click a link sent to their email to verify but is it possible to set their verified using sso as default 1 ? example below.
$clientID = "xxxxxx";
$secret = "xxxxxxxxxxxxxxxxxx";
$signedIn = true;
if ($_SESSION['ID'])
$signedIn = true;
$user = array();
if ($signedIn) {
$user['uniqueid'] = $_SESSION['ID'];
$user['name'] = $_SESSION['Name'];
$user['email'] = $_SESSION['Email'];
$user['verified'] = "1";
}
$secure = true;
WriteJsConnect($user, $_GET, $clientID, $secret, $secure);
Tagged:
0
Comments
Have you tried enabling "This is trusted connection and can sync roles & permissions." in the jsconnect settings?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS