diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-15 06:15:06 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-15 06:15:06 +0000 |
| commit | 08c9d21dd4a4da2f5ec713ca94a884d3924761c1 (patch) | |
| tree | 62d662948fc6ab687e7b52bd17fe0258d6c8c0dd /routes/index.js | |
| parent | a3efcf4365c0ef2470a5e6f1116e2142ce8e780d (diff) | |
Fixed message when someone logs in with facebook using an email that already exists
Diffstat (limited to 'routes/index.js')
| -rw-r--r-- | routes/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/index.js b/routes/index.js index c87ced9..fe1cdb8 100644 --- a/routes/index.js +++ b/routes/index.js @@ -280,7 +280,8 @@ router.get('/auth/facebook', passport.authenticate('facebook', { scope: ['email' router.get('/auth/facebook/callback', passport.authenticate('facebook', { successRedirect: '/user/user_profile', - failureRedirect: '/user/signin' })); + failureRedirect: '/user/signin', + failureFlash: true})); |
