Commit 8e7ca261579db6853efbdf14570bfb65931626dd

Authored by Leonardo Merlin
1 parent fca004bb

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 65  
66 66 // 'Usuário ativado com sucesso'
67 67 $rootScope.$broadcast(AUTH_EVENTS.activateSuccess, response);
68   - return currentUser;
  68 + return response;
69 69 }, function(response) {
70 70 // 'Erro: O código de ativação é inválido.'
71 71 $log.debug('AuthService.activate [FAIL] response', response);
... ... @@ -91,7 +91,7 @@
91 91  
92 92 // 'Senha alterada com sucesso.'
93 93 $rootScope.$broadcast(AUTH_EVENTS.changePasswordSuccess, response);
94   - return currentUser;
  94 + return response;
95 95 }, function(response) {
96 96 // 'Não foi possível trocar a senha com os dados informados.'
97 97 $log.debug('AuthService.changePassword [FAIL] response', response);
... ... @@ -111,7 +111,7 @@
111 111  
112 112 // 'Verifique seu email para efetuar a troca da senha.'
113 113 $rootScope.$broadcast(AUTH_EVENTS.forgotPasswordSuccess, response);
114   - return currentUser;
  114 + return response;
115 115 }, function(response) {
116 116 // 'Não foi possível requisitar a troca de senha para os dados informados.'
117 117 $log.debug('AuthService.forgotPassword [FAIL] response', response);
... ...