aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/router.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-24 09:31:04 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-24 09:31:04 +0200
commit7c43e53dd2fa4f1b517b83d5d9e48f4bb98fa045 (patch)
tree6a492ef88f7f8973e0182c6f6afc970cba5bf953 /router.js
parentremoved some tabs and fixed a bug (diff)
downloadDivid-7c43e53dd2fa4f1b517b83d5d9e48f4bb98fa045.tar.gz
fixed bug where logout was POST and not GET
Diffstat (limited to '')
-rw-r--r--router.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/router.js b/router.js
index 4130ee7..ee7f2f6 100644
--- a/router.js
+++ b/router.js
@@ -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('/');
});