diff options
-rw-r--r-- | controllers/user.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/user.js b/controllers/user.js index 21ab829..de5b309 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -18,7 +18,7 @@ module.exports = { .catch(err => { console.log(err); req.flash('msg', 'Validation errors...'); - req.redirect('/register'); + res.redirect('/register'); }); } else { |