Regions single-sign-on: Hide login form on redirect

If login URL is passed to management server on load, show loading
screen in place of login form.
This commit is contained in:
Brian Federle 2013-03-21 15:27:44 -07:00
parent 85ef511702
commit 0fbf1b91b0
2 changed files with 12 additions and 0 deletions

View File

@ -460,6 +460,12 @@
};
document.title = 'CloudStack';
if ($.cookie('loginUrl') != null || $.urlParam('loginUrl') != 0) {
// SSO
loginArgs.hideLoginScreen = true;
}
cloudStack.uiCustom.login(loginArgs);
// Localization

View File

@ -128,5 +128,11 @@
});
$languageSelect.val($.cookie('lang'));
// Hide login screen, mainly for SSO
if (args.hideLoginScreen) {
$login.children().hide();
$login.append($('<div>').addClass('loading-overlay'));
}
};
})(jQuery, cloudStack);