Commit bde920243ede5b1163b0d3d7af462ad90def37b6

Authored by Leandro Santos
1 parent 6c43d39c

adapting login to new return of api login endpoint

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/components/auth/auth.service.js
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 .then(function(response) { 37 .then(function(response) {
38 $log.debug('AuthService.register [SUCCESS] response', response); 38 $log.debug('AuthService.register [SUCCESS] response', response);
39 39
40 - var currentUser = Session.create(response.data); 40 + var currentUser = Session.create(response.data['user']);
41 41
42 $rootScope.currentUser = currentUser; 42 $rootScope.currentUser = currentUser;
43 $rootScope.$broadcast(AUTH_EVENTS.registerSuccess, currentUser); 43 $rootScope.$broadcast(AUTH_EVENTS.registerSuccess, currentUser);