0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Populating admin email with user signup email

closes #775
This commit is contained in:
Hannah Wolfe 2013-09-17 03:08:36 +01:00
parent ce57b46358
commit 750c19014a

View file

@ -171,12 +171,13 @@ adminControllers = {
email: email, email: email,
password: password password: password
}).then(function (user) { }).then(function (user) {
api.settings.edit('email', email).then(function () {
if (req.session.user === undefined) { if (req.session.user === undefined) {
req.session.user = user.id; req.session.user = user.id;
} }
res.json(200, {redirect: '/ghost/'}); res.json(200, {redirect: '/ghost/'});
}, function (error) { });
}).otherwise(function (error) {
res.json(401, {error: error.message}); res.json(401, {error: error.message});
}); });