Skip to content

Commit

Permalink
Fix sign up not setting user on session
Browse files Browse the repository at this point in the history
No issue found

- Grab user out of api response from users[0]
  • Loading branch information
jgable committed May 15, 2014
1 parent f1a3f1a commit f565dd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/server/controllers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ adminControllers = {
password: password
}];

api.users.register({users: users}).then(function (user) {
api.users.register({users: users}).then(function (apiResp) {
var user = apiResp.users[0];

api.settings.edit.call({user: 1}, 'email', email).then(function () {
var message = {
to: email,
Expand Down

0 comments on commit f565dd5

Please sign in to comment.