diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 639857c768..de0ba56bf0 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -182,7 +182,7 @@ authenticationController.registerComplete = function (req, res, next) { }); } - if (err) { + if (err.length) { req.flash('errors', err); return res.redirect(nconf.get('relative_path') + '/register/complete'); }