GUAC-807 Fixed login page error, minify button usage, and menu initial state.

This commit is contained in:
James Muehlner
2014-11-05 22:41:46 -08:00
parent fa68aa7d80
commit 4c34220c65
3 changed files with 3 additions and 6 deletions

View File

@@ -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);