aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-24 11:21:12 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-24 11:21:12 +0200
commitd135ce7ed7768928b82fd1530b3cc13090397dfb (patch)
tree7c06d3e7177d72f65edd6358f221b8de18b99e66 /routes.js
parentfixed some nicklists and other stuffs (diff)
downloadDivid-d135ce7ed7768928b82fd1530b3cc13090397dfb.tar.gz
added random access link for invited users. now they don't have to
register to post.
Diffstat (limited to 'routes.js')
-rw-r--r--routes.js1
1 files changed, 1 insertions, 0 deletions
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