one more minor fix to req.flash err

This commit is contained in:
Julian Lam
2018-05-01 15:25:11 -04:00
parent 4533a311e1
commit c9d8fc3f58

View File

@@ -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');
}