aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/user.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/controllers/user.js b/controllers/user.js
index 980fc12..3f7b4a1 100644
--- a/controllers/user.js
+++ b/controllers/user.js
@@ -22,12 +22,8 @@ module.exports = {
}
},
- login(req, res) {
- console.log(req.body);
- res.redirect('/login');
- },
-
logout(req, res) {
+ req.logout();
res.redirect('/');
},