From 2ba1bee9ec9d95e8218b29bb3af9f2b28ff8cd3a Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Fri, 14 Feb 2014 12:02:07 -0500 Subject: [PATCH] Updated flash message in Google Strategy --- config/passport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/passport.js b/config/passport.js index 9031d142b2..0e9524cabe 100755 --- a/config/passport.js +++ b/config/passport.js @@ -197,7 +197,7 @@ passport.use(new GoogleStrategy(secrets.google, function(req, accessToken, refre if (existingUser) return done(null, existingUser); User.findOne({ email: profile._json.email }, function(err2, existingEmailUser) { if(existingEmailUser) { - req.flash('errors', { msg: 'There is already an account using this google account\'s email address, login and link your account to your google account from account settings' }); + req.flash('errors', { msg: 'There is already an account using this Google account\'s email address. Sign in with that account or delete it, then link it with your current account.' }); done(err2); } else { var user = new User();