|
|
@@ -15,7 +15,7 @@ angular.module('AuthSvc', []).service('AuthService', ['$http', '$window', functi |
|
|
|
}, |
|
|
|
data: user |
|
|
|
}).then(function(res) { |
|
|
|
if (res.status !== 401) |
|
|
|
if (res.status === 200) |
|
|
|
$window.location.href = '/home'; |
|
|
|
}) |
|
|
|
}; |
|
|
@@ -43,8 +43,8 @@ angular.module('AuthSvc', []).service('AuthService', ['$http', '$window', functi |
|
|
|
}, |
|
|
|
data: user |
|
|
|
}).then(function(res) { |
|
|
|
if (res.status === 401) return false; |
|
|
|
$window.location.href = '/home'; |
|
|
|
if (res.status === 200) |
|
|
|
$window.location.href = '/home'; |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|