diff --git a/src/app/components/auth/auth.service.js b/src/app/components/auth/auth.service.js index 67338b5..f9aecdc 100644 --- a/src/app/components/auth/auth.service.js +++ b/src/app/components/auth/auth.service.js @@ -37,7 +37,7 @@ .then(function(response) { $log.debug('AuthService.register [SUCCESS] response', response); - var currentUser = Session.create(response.data); + var currentUser = Session.create(response.data['user']); $rootScope.currentUser = currentUser; $rootScope.$broadcast(AUTH_EVENTS.registerSuccess, currentUser); -- libgit2 0.21.2