summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index 016b811..792c8ec 100644
--- a/server.js
+++ b/server.js
@@ -286,7 +286,7 @@ app.get('/signup', function (req, res) {
app.post('/login',
passport.authenticate('local-login', {
- successRedirect: '/',
+ successRedirect: '/profile',
failureRedirect: '/login',
failureFlash: true
})
@@ -294,7 +294,7 @@ app.post('/login',
app.post('/signup',
passport.authenticate('local-signup', {
- successRedirect: '/',
+ successRedirect: '/profile',
failureRedirect: '/signup',
failureFlash: true
})