diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-14 15:06:11 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-14 15:06:11 +0200 |
commit | 144061cf7ebcd257375ab82ad8a05013bf3a62d9 (patch) | |
tree | 90601dd7c683359385c81eb64359c6eb9b65b711 /routes.js | |
parent | fixed bug where login used username instead of email (diff) | |
download | Divid-144061cf7ebcd257375ab82ad8a05013bf3a62d9.tar.gz |
added local login
Diffstat (limited to 'routes.js')
-rw-r--r-- | routes.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |