mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
one more minor fix to req.flash err
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user