diff --git a/lib/controllers/register.js b/lib/controllers/register.js index 625ba354..ca6fd909 100644 --- a/lib/controllers/register.js +++ b/lib/controllers/register.js @@ -253,10 +253,14 @@ module.exports = function (req, res, next) { return writeFormError(err); } - //console.log('Register account status!', account.status); - if (account.status === 'UNVERIFIED') { - return handleResponse(account, defaultUnverifiedHtmlResponse); + return helpers.expandAccount(account, config.expand, logger, function (err, expandedAccount) { + if (err) { + return writeFormError(err); + } + + return handleResponse(expandedAccount, defaultUnverifiedHtmlResponse); + }); } if (config.web.register.autoLogin) {