aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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);