From 144061cf7ebcd257375ab82ad8a05013bf3a62d9 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 14 May 2013 15:06:11 +0200 Subject: added local login --- routes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes.js b/routes.js index 12d2894..72b036f 100644 --- a/routes.js +++ b/routes.js @@ -26,6 +26,8 @@ module.exports = function(app, passport, auth) { app.get('/login', users.login); + app.post('/login', passport.authenticate('local', { failureRedirect: '/test' }), users.signin); + app.get('/signup', users.signup); app.post('/signup', users.create); -- cgit v1.2.3