mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUAC-807 Fixed login page error, minify button usage, and menu initial state.
This commit is contained in:
@@ -44,7 +44,7 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
$scope.clientProperties = {scale: 1};
|
||||
|
||||
// Hide menu by default
|
||||
$scope.menuShown = true;
|
||||
$scope.menuShown = false;
|
||||
|
||||
/*
|
||||
* Parse the type, name, and id out of the url paramteres,
|
||||
|
@@ -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