Commit 70f245ffcd9bcb746404148f1ec78f06600a2bd5
Exists in
master
and in
6 other branches
Merge branch 'master' into staging
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 | 37 | .then(function(response) { |
38 | 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 | 42 | $rootScope.currentUser = currentUser; |
43 | 43 | $rootScope.$broadcast(AUTH_EVENTS.registerSuccess, currentUser); | ... | ... |