diff options
author | Robert Zorko <robertz@gurucue.com> | 2015-10-21 13:57:43 +0200 |
---|---|---|
committer | Robert Zorko <robertz@gurucue.com> | 2015-10-21 13:57:43 +0200 |
commit | fbcca83fc33f3a622364ae90c5d82bbbdc9a9dc6 (patch) | |
tree | b82b7f63991c024e7ac33e093121b8d94e181227 /js/codeq/aaiLogin.js | |
parent | 08e955335ecb65c308dbc68bf0610dce39ce3623 (diff) |
global saml_logout has been disabled. A bug with the saml login timeout has been fixed (if the user entered the saml login screen and went back he would later get the timeout error)
Diffstat (limited to 'js/codeq/aaiLogin.js')
-rw-r--r-- | js/codeq/aaiLogin.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/codeq/aaiLogin.js b/js/codeq/aaiLogin.js index 7e48486..5d4f1c9 100644 --- a/js/codeq/aaiLogin.js +++ b/js/codeq/aaiLogin.js @@ -14,6 +14,7 @@ codeq.globalStateMachine.register('aailogin',{ 'enter': function(){ jqDisabledOverlay.css('display', ''); + codeq.samlLogin = true;//set the flag $('.saml-login-hide').css('display','none');//hide the change password buttons, in the case we go back to the normal login page (cancel or error) they will be reset to being visible when we enter the normal login state jqNavigationHomeBtn.off('click');//remove the click listener of this element here jqNavBarRight.css('display','none');//hide settings etc. @@ -34,9 +35,11 @@ }) .then(codeq.loginCallbackFunction) .fail(function(reason){ - codeq.log.error('SAML login failed: ' + reason); - alert('SAML login failed: ' + reason); - codeq.globalStateMachine.transition('login'); + if(codeq.samlLogin){//if the user goes back to the normal login screen the timeout (which will happen) mustn't do anything + codeq.log.error('SAML login failed: ' + reason); + alert('SAML login failed: ' + reason); + codeq.globalStateMachine.transition('login'); + } }) .done(); |