From 2f459e2b6d1ecf2aa35f4490ac5d372c8c39e1ec Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 11 Jan 2016 14:18:59 -0300 Subject: [PATCH] Return null when failed to login --- src/app/components/auth/auth.service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/auth/auth.service.js b/src/app/components/auth/auth.service.js index dbd4e80..99eba79 100644 --- a/src/app/components/auth/auth.service.js +++ b/src/app/components/auth/auth.service.js @@ -31,7 +31,8 @@ function loginFailedCallback(response) { $log.debug('AuthService.login [FAIL] response', response); $rootScope.$broadcast('login-failed'); - return $q.reject(response); + // return $q.reject(response); + return null; } function logout () { -- libgit2 0.21.2