mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #2766 from jgable/fixRegister
Fix sign up not setting user on session
This commit is contained in:
commit
4378495e8e
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue