one more minor fix to req.flash err

v1.18.x
Julian Lam 7 years ago
parent 4533a311e1
commit c9d8fc3f58

@ -182,7 +182,7 @@ authenticationController.registerComplete = function (req, res, next) {
}); });
} }
if (err) { if (err.length) {
req.flash('errors', err); req.flash('errors', err);
return res.redirect(nconf.get('relative_path') + '/register/complete'); return res.redirect(nconf.get('relative_path') + '/register/complete');
} }

Loading…
Cancel
Save