Commit 254599d1 authored by Kirk Webb's avatar Kirk Webb

More changes for PhantomNet GENI login missed in the last commit.

parent 6f9e7ef0
...@@ -94,7 +94,7 @@ window.APT_OPTIONS.initialize = function (sup) ...@@ -94,7 +94,7 @@ window.APT_OPTIONS.initialize = function (sup)
$('#loginbutton').click(function (event) { $('#loginbutton').click(function (event) {
event.preventDefault(); event.preventDefault();
sup.ShowModal('#quickvm_login_modal'); sup.ShowModal('#quickvm_login_modal');
if (window.ISCLOUD) { if (window.ISCLOUD || window.ISPNET) {
console.info("Loading geni auth code"); console.info("Loading geni auth code");
sup.InitGeniLogin(embedded); sup.InitGeniLogin(embedded);
require([geniauth], function() { require([geniauth], function() {
......
...@@ -14,7 +14,7 @@ function (_, sup, waitwaitString) ...@@ -14,7 +14,7 @@ function (_, sup, waitwaitString)
// We share code with the modal version of login, and the // We share code with the modal version of login, and the
// handler for the button is installed in initialize(). // handler for the button is installed in initialize().
// See comment there. // See comment there.
if (window.ISCLOUD) { if (window.ISCLOUD || window.ISPNET) {
sup.InitGeniLogin(embedded); sup.InitGeniLogin(embedded);
} }
window.APT_OPTIONS.initialize(sup); window.APT_OPTIONS.initialize(sup);
......
...@@ -508,7 +508,7 @@ function SpitVerifyModal($id, $label) ...@@ -508,7 +508,7 @@ function SpitVerifyModal($id, $label)
function SpitLoginModal($id) function SpitLoginModal($id)
{ {
global $PORTAL_PASSWORD_HELP; global $PORTAL_PASSWORD_HELP;
global $APTTITLE, $ISCLOUD; global $APTTITLE, $ISCLOUD, $ISPNET;
$referrer = CleanString($_SERVER['REQUEST_URI']); $referrer = CleanString($_SERVER['REQUEST_URI']);
?> ?>
<!-- This is the login modal --> <!-- This is the login modal -->
...@@ -547,7 +547,7 @@ function SpitLoginModal($id) ...@@ -547,7 +547,7 @@ function SpitLoginModal($id)
<div class='form-group'> <div class='form-group'>
<div class='col-sm-offset-2 col-sm-10'> <div class='col-sm-offset-2 col-sm-10'>
<?php <?php
if ($ISCLOUD) { if ($ISCLOUD || $ISPNET) {
?> ?>
<button class='btn btn-info btn-sm pull-left' disabled <button class='btn btn-info btn-sm pull-left' disabled
type='button' type='button'
......
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