GUAC-919: Take user to login page upon logout even if logout fails (which only happens if they are already logged out).
This commit is contained in:
1 parent
5ecb5c9306
commit
78eae400ca
1 file changed
+1
-1
@@ -89,7 +89,7 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
|
||||
|
||||
// Provide simple mechanism for logging out the current user
|
||||
$scope.logout = function logout() {
|
||||
authenticationService.logout().success(function logoutSuccess() {
|
||||
authenticationService.logout()['finally'](function logoutComplete() {
|
||||
$location.path('/login');
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user