mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
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:
@@ -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');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user