Fix sign up not setting user on session

No issue found

- Grab user out of api response from users[0]
This commit is contained in:
Jacob Gable 2014-05-14 20:38:58 -05:00
parent f1a3f1a7a5
commit f565dd505a

View File

@ -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,