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/navigation.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/navigation.js')
-rw-r--r-- | js/codeq/navigation.js | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/js/codeq/navigation.js b/js/codeq/navigation.js index 9483e05..7fc3697 100644 --- a/js/codeq/navigation.js +++ b/js/codeq/navigation.js @@ -107,7 +107,6 @@ e.preventDefault(); }); $('#navigation-logout').on('click', function(e){ - codeq.globalStateMachine.transition('login'); codeq.comms.logout() .then(function (data) { @@ -119,6 +118,31 @@ }) .done(); + /*leaving this here if we later decide to enable saml_logout + if(codeq.samlLogin){ + codeq.comms.samlLogout() + .then(function (data) { + console.log(data); + codeq.comms.disconnect(); + }) + .fail(function (reason) { + console.log(reason); + }) + .done(); + }else{ + codeq.comms.logout() + .then(function (data) { + console.log(data); + codeq.comms.disconnect(); + }) + .fail(function (reason) { + console.log(reason); + }) + .done(); + }*/ + + codeq.globalStateMachine.transition('login'); + //codeq.globalStateMachine.transition('login'); e.preventDefault();//prevent this since we'll trigger a page reload otherwise }); |