Commit 8e7ca261579db6853efbdf14570bfb65931626dd
1 parent
fca004bb
Exists in
master
and in
8 other branches
Lint code
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/app/components/auth/auth.service.js
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | 65 | ||
66 | // 'Usuário ativado com sucesso' | 66 | // 'Usuário ativado com sucesso' |
67 | $rootScope.$broadcast(AUTH_EVENTS.activateSuccess, response); | 67 | $rootScope.$broadcast(AUTH_EVENTS.activateSuccess, response); |
68 | - return currentUser; | 68 | + return response; |
69 | }, function(response) { | 69 | }, function(response) { |
70 | // 'Erro: O código de ativação é inválido.' | 70 | // 'Erro: O código de ativação é inválido.' |
71 | $log.debug('AuthService.activate [FAIL] response', response); | 71 | $log.debug('AuthService.activate [FAIL] response', response); |
@@ -91,7 +91,7 @@ | @@ -91,7 +91,7 @@ | ||
91 | 91 | ||
92 | // 'Senha alterada com sucesso.' | 92 | // 'Senha alterada com sucesso.' |
93 | $rootScope.$broadcast(AUTH_EVENTS.changePasswordSuccess, response); | 93 | $rootScope.$broadcast(AUTH_EVENTS.changePasswordSuccess, response); |
94 | - return currentUser; | 94 | + return response; |
95 | }, function(response) { | 95 | }, function(response) { |
96 | // 'Não foi possível trocar a senha com os dados informados.' | 96 | // 'Não foi possível trocar a senha com os dados informados.' |
97 | $log.debug('AuthService.changePassword [FAIL] response', response); | 97 | $log.debug('AuthService.changePassword [FAIL] response', response); |
@@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
111 | 111 | ||
112 | // 'Verifique seu email para efetuar a troca da senha.' | 112 | // 'Verifique seu email para efetuar a troca da senha.' |
113 | $rootScope.$broadcast(AUTH_EVENTS.forgotPasswordSuccess, response); | 113 | $rootScope.$broadcast(AUTH_EVENTS.forgotPasswordSuccess, response); |
114 | - return currentUser; | 114 | + return response; |
115 | }, function(response) { | 115 | }, function(response) { |
116 | // 'Não foi possível requisitar a troca de senha para os dados informados.' | 116 | // 'Não foi possível requisitar a troca de senha para os dados informados.' |
117 | $log.debug('AuthService.forgotPassword [FAIL] response', response); | 117 | $log.debug('AuthService.forgotPassword [FAIL] response', response); |