Commit bde920243ede5b1163b0d3d7af462ad90def37b6
1 parent
6c43d39c
Exists in
master
and in
7 other branches
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 | 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); | ... | ... |
-
mentioned in commit 41162f46fadf0f11f9d46ef404245f09b5c1319e