Updated LinkedIn error flash message

This commit is contained in:
Sahat Yalkabov
2014-02-27 17:57:13 -05:00
parent 933c79e15b
commit 4d52dbd013

View File

@ -263,7 +263,7 @@ passport.use(new LinkedInStrategy(secrets.linkedin, function(req, accessToken, r
if (existingUser) return done(null, existingUser); if (existingUser) return done(null, existingUser);
User.findOne({ email: profile._json.emailAddress }, function(err, existingEmailUser) { User.findOne({ email: profile._json.emailAddress }, function(err, existingEmailUser) {
if (existingEmailUser) { if (existingEmailUser) {
req.flash('errors', { msg: 'There is already an account using this email address. Sign in to that account and link it with Google manually from Account Settings.' }); req.flash('errors', { msg: 'There is already an account using this email address. Sign in to that account and link it with LinkedIn manually from Account Settings.' });
done(err); done(err);
} else { } else {
var user = new User(); var user = new User();