mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -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
|
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 () {
|
api.settings.edit.call({user: 1}, 'email', email).then(function () {
|
||||||
var message = {
|
var message = {
|
||||||
to: email,
|
to: email,
|
||||||
|
|
Loading…
Add table
Reference in a new issue