Node.js based forum software built for the modern web
possible fix to req.flash err crash
Julian Lam4533a311e168
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 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');}