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

This commit is contained in:
James Muehlner committed 2015-03-10 20:44:45 -07:00
1 parent 59d794ef96
commit b32f358e7e
8 files changed
+309 -33

No files matched your search

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