mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUAC-807 Fixed login page error, minify button usage, and menu initial state.
This commit is contained in:
@@ -31,7 +31,7 @@ angular.module('index').factory('authenticationInterceptor', ['$location', '$q',
|
||||
'responseError': function(rejection) {
|
||||
// Do not redirect failed login requests to the login page.
|
||||
if ((rejection.status === 401 || rejection.status === 403)
|
||||
&& rejection.config.url.search('api/login') === -1) {
|
||||
&& rejection.config.url.search('api/token') === -1) {
|
||||
$location.path('/login');
|
||||
}
|
||||
return $q.reject(rejection);
|
||||
|
Reference in New Issue
Block a user