From 08c9d21dd4a4da2f5ec713ca94a884d3924761c1 Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Mon, 15 Aug 2016 02:15:06 -0400 Subject: Fixed message when someone logs in with facebook using an email that already exists --- routes/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes/index.js') 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})); -- cgit v1.2.3