From c9d8fc3f58ed304ca6ad219b085b3be6b487477f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 1 May 2018 15:25:11 -0400 Subject: [PATCH] one more minor fix to req.flash err --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }