From d135ce7ed7768928b82fd1530b3cc13090397dfb Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 11:21:12 +0200 Subject: added random access link for invited users. now they don't have to register to post. --- routes.js | 1 + 1 file changed, 1 insertion(+) (limited to 'routes.js') diff --git a/routes.js b/routes.js index 071d3d0..1717766 100644 --- a/routes.js +++ b/routes.js @@ -46,6 +46,7 @@ module.exports = function(app, passport, auth) { app.get('/logout', users.logout); + app.get('/login/:hash', passport.authenticate('hash', { failureRedirect: '/test'}), users.randomLogin); /** * REQUIRES LOGIN -- cgit v1.2.3