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:
Michael Jumper
2014-11-05 13:13:10 -08:00
parent 5ecb5c9306
commit 78eae400ca

View File

@@ -89,7 +89,7 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
// Provide simple mechanism for logging out the current user // Provide simple mechanism for logging out the current user
$scope.logout = function logout() { $scope.logout = function logout() {
authenticationService.logout().success(function logoutSuccess() { authenticationService.logout()['finally'](function logoutComplete() {
$location.path('/login'); $location.path('/login');
}); });
}; };