Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
5208e4e0
Commit
5208e4e0
authored
Mar 11, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Watch for a hidden referrer link when doing a geni login, and redirect
to that URL like we do for normal login.
parent
65f19403
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
www/aptui/js/quickvm_sup.js
www/aptui/js/quickvm_sup.js
+4
-1
www/aptui/login.php
www/aptui/login.php
+3
-2
No files found.
www/aptui/js/quickvm_sup.js
View file @
5208e4e0
...
...
@@ -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
{
...
...
www/aptui/login.php
View file @
5208e4e0
<?php
#
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
# Copyright (c) 2000-201
5
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'
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment