summaryrefslogtreecommitdiff
path: root/js/codeq/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/navigation.js')
-rw-r--r--js/codeq/navigation.js26
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
});