Updated LinkedIn error flash message

pull/2/head
Sahat Yalkabov 2014-02-27 17:57:13 -05:00
parent 933c79e15b
commit 4d52dbd013
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ passport.use(new LinkedInStrategy(secrets.linkedin, function(req, accessToken, r
if (existingUser) return done(null, existingUser);
User.findOne({ email: profile._json.emailAddress }, function(err, 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);
} else {
var user = new User();