From 97ed7eaacfa8d3d1a91e797e8397417b43f282d6 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 6 Oct 2014 15:33:24 +0200 Subject: [PATCH] bug #3165: sign out should redirect to the login page even if the session has expired --- src/sunstone/public/js/sunstone.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 7b7ac0778e..1635d27861 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -502,7 +502,8 @@ function setLogin(){ OpenNebula.Auth.logout({ success: function(){ window.location.href = "login"; - } + }, + error: onError }); return false;