v2 port: enable integration tests, port register route

This commit is contained in:
Matteo Pagliazzi
2016-04-03 16:40:01 +02:00
parent fc73fc7f8c
commit 58c20c2a64
36 changed files with 114 additions and 50 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ api.logout = {
url: '/user/auth/logout', // TODO this is under /api/v3 route, should be accessible through habitica.com/logout
middlewares: [authWithSession, cron],
async handler (req, res) {
req.logout();
req.logout(); // passportjs method
req.session = null;
res.redirect('/');
},