diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-24 09:31:04 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-24 09:31:04 +0200 |
commit | 7c43e53dd2fa4f1b517b83d5d9e48f4bb98fa045 (patch) | |
tree | 6a492ef88f7f8973e0182c6f6afc970cba5bf953 /router.js | |
parent | removed some tabs and fixed a bug (diff) | |
download | Divid-7c43e53dd2fa4f1b517b83d5d9e48f4bb98fa045.tar.gz |
fixed bug where logout was POST and not GET
Diffstat (limited to '')
-rw-r--r-- | router.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -235,7 +235,7 @@ module.exports = function(app) { * * '/logout' */ - app.post('/logout', function(req, res) { + app.get('/logout', function(req, res) { req.logout(); res.redirect('/'); }); |