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