diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index f9eb6f75e2..639857c768 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -177,9 +177,13 @@ authenticationController.registerComplete = function (req, res, next) { async.parallel(callbacks, function (_blank, err) { if (err.length) { - req.flash('errors', err.filter(Boolean).map(function (err) { + err = err.filter(Boolean).map(function (err) { return err.message; - })); + }); + } + + if (err) { + req.flash('errors', err); return res.redirect(nconf.get('relative_path') + '/register/complete'); }