aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-14 15:06:11 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-14 15:06:11 +0200
commit144061cf7ebcd257375ab82ad8a05013bf3a62d9 (patch)
tree90601dd7c683359385c81eb64359c6eb9b65b711 /routes.js
parentfixed bug where login used username instead of email (diff)
downloadDivid-144061cf7ebcd257375ab82ad8a05013bf3a62d9.tar.gz
added local login
Diffstat (limited to 'routes.js')
-rw-r--r--routes.js2
1 files changed, 2 insertions, 0 deletions
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);