From 8e7ca261579db6853efbdf14570bfb65931626dd Mon Sep 17 00:00:00 2001 From: Leonardo Merlin Date: Tue, 8 Sep 2015 17:02:31 -0300 Subject: [PATCH] Lint code --- src/app/components/auth/auth.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/auth/auth.service.js b/src/app/components/auth/auth.service.js index af30678..3a3ccd9 100644 --- a/src/app/components/auth/auth.service.js +++ b/src/app/components/auth/auth.service.js @@ -65,7 +65,7 @@ // 'Usuário ativado com sucesso' $rootScope.$broadcast(AUTH_EVENTS.activateSuccess, response); - return currentUser; + return response; }, function(response) { // 'Erro: O código de ativação é inválido.' $log.debug('AuthService.activate [FAIL] response', response); @@ -91,7 +91,7 @@ // 'Senha alterada com sucesso.' $rootScope.$broadcast(AUTH_EVENTS.changePasswordSuccess, response); - return currentUser; + return response; }, function(response) { // 'Não foi possível trocar a senha com os dados informados.' $log.debug('AuthService.changePassword [FAIL] response', response); @@ -111,7 +111,7 @@ // 'Verifique seu email para efetuar a troca da senha.' $rootScope.$broadcast(AUTH_EVENTS.forgotPasswordSuccess, response); - return currentUser; + return response; }, function(response) { // 'Não foi possível requisitar a troca de senha para os dados informados.' $log.debug('AuthService.forgotPassword [FAIL] response', response); -- libgit2 0.21.2