From a1e3012ca088d9e6ff2cce65aa1c30c74c11194f Mon Sep 17 00:00:00 2001 From: kumar Date: Wed, 27 Jul 2016 12:48:12 -0400 Subject: facebook link updated --- config/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/auth.js b/config/auth.js index c46c55e..9b171a1 100644 --- a/config/auth.js +++ b/config/auth.js @@ -2,6 +2,6 @@ module.exports = { 'facebookAuth' : { 'clientID' : '1618318315164670', 'clientSecret' : 'b4b67801b2b37f795871ce7cc55a33cf', - 'callbackURL' : 'http://localhost:3000/auth/facebook/callback' + 'callbackURL' : 'http://frozen-springs-49303.herokuapp.com/auth/facebook/callback' } } \ No newline at end of file -- cgit v1.2.3 From 07605fceb7244032ea1601b1bf3bbc13c2b796c1 Mon Sep 17 00:00:00 2001 From: kumar Date: Wed, 27 Jul 2016 12:50:38 -0400 Subject: undoing that last change --- config/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/auth.js b/config/auth.js index 9b171a1..c46c55e 100644 --- a/config/auth.js +++ b/config/auth.js @@ -2,6 +2,6 @@ module.exports = { 'facebookAuth' : { 'clientID' : '1618318315164670', 'clientSecret' : 'b4b67801b2b37f795871ce7cc55a33cf', - 'callbackURL' : 'http://frozen-springs-49303.herokuapp.com/auth/facebook/callback' + 'callbackURL' : 'http://localhost:3000/auth/facebook/callback' } } \ No newline at end of file -- cgit v1.2.3 From ce93c6f62b137c677ba2c237d07c54e59c05ae8a Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Wed, 27 Jul 2016 13:33:14 -0400 Subject: Removed FB verification for admin --- routes/user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/user.js b/routes/user.js index ac9494f..2b8453f 100644 --- a/routes/user.js +++ b/routes/user.js @@ -161,7 +161,12 @@ router.get('/signin', loggedOut, function (req, res, next) { /** Render/GET verification page. */ router.get('/verify', function(req, res, next) { - res.render('verification', {noHeader: true, noFooter: true}); + if (req.user.email) { + res.render('verification', {noHeader: true, noFooter: true}); + } else { + res.redirect('/user/user_profile'); + } + }); -- cgit v1.2.3