Commit 5208e4e0 authored by Leigh B Stoller's avatar Leigh B Stoller

Watch for a hidden referrer link when doing a geni login, and redirect

to that URL like we do for normal login.
parent 65f19403
......@@ -189,7 +189,10 @@ function VerifySpeaksfor(speaksfor, signature)
document.cookie = cookie1;
document.cookie = cookie2;
document.cookie = cookie3;
if (EMBEDDED) {
if ($('#login_referrer').length) {
window.location.replace($('#login_referrer').val());
}
else if (EMBEDDED) {
window.parent.location.replace("../" + json.value.url);
}
else {
......
<?php
#
# Copyright (c) 2000-2014 University of Utah and the Flux Group.
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -136,7 +136,8 @@ function SPITFORM($uid, $referrer, $error)
echo "<span class='help-block'>Please login before continuing</span>";
}
if ($referrer) {
echo "<input type=hidden name=referrer value=$referrer>\n";
echo "<input type=hidden name=referrer id='login_referrer' ".
"value=$referrer>\n";
}
?>
<div class='form-group'>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment