Saving data from form
Change-Id: If78c7b7a8396a574edbc2cab3fd4150010f103b6
diff --git a/src/interceptors.ts b/src/interceptors.ts
index dc0dcc4..c5b5e7e 100644
--- a/src/interceptors.ts
+++ b/src/interceptors.ts
@@ -12,7 +12,8 @@
export function userStatusInterceptor($state: angular.ui.IStateService) {
const checkLogin = (res) => {
- if (res.status === 403 || res.status === -1) {
+ // NOTE why are returning 403 in place of 401??
+ if (res.status === 401 || res.status === -1) {
$state.go('login');
}
return res;