Skip to content
Snippets Groups Projects
Commit 90d91307 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

if sso cookie is set, try logging in

parent a7eafd4b
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
/* Initialize the theme */ /* Initialize the theme */
function unl_theme_init(){ function unl_theme_init(){
//If user is signed into UNL SSO but not planet red and they visit planet red - try logging them in
if ($_COOKIE['unl_sso'] && !isloggedin() && get_input('action') != 'login') {
$ts = time();
$token = generate_action_token($ts);
forward($CONFIG->url.'action/login?usecas=yes&email='.$email.'&__elgg_ts='.$ts.'&__elgg_token='.$token.'&view='.$view);
}
} }
// Initialise log browser // Initialise log browser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment