aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-08 21:20:20 +0200
committerMateja <mail@matejamaric.com>2021-05-08 21:20:20 +0200
commit0a95a55d5317b1ca0be54b226834f9433365717d (patch)
tree9a8a20e7314c0f33a4d3a78851697436d3c7e71f /controllers
parent9a78a9e480631106fa437d7a53b854c83cc5db02 (diff)
downloadnode-playground-0a95a55d5317b1ca0be54b226834f9433365717d.tar.gz
node-playground-0a95a55d5317b1ca0be54b226834f9433365717d.zip
Fixed a typo.
Diffstat (limited to 'controllers')
-rw-r--r--controllers/user.js2
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 {