mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
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:
parent
f1a3f1a7a5
commit
f565dd505a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user