GUAC-801 Implemented new endpoint for password update, and updated js to use the new endpoint.

This commit is contained in:
James Muehlner
2015-03-10 20:44:45 -07:00
parent 59d794ef96
commit b32f358e7e
8 changed files with 309 additions and 33 deletions

View File

@@ -29,9 +29,9 @@ angular.module('index').factory('authenticationInterceptor', ['$location', '$q',
},
'responseError': function(rejection) {
// Do not redirect failed login requests to the login page.
// Do not redirect failed api requests.
if ((rejection.status === 401 || rejection.status === 403)
&& rejection.config.url.search('api/token') === -1) {
&& rejection.config.url.search('api/') === -1) {
$location.path('/login');
}
return $q.reject(rejection);