Fix auth fail when using uppercase in email

This commit is contained in:
NGPixel
2017-03-12 12:15:29 -04:00
parent 80aa30009b
commit bfcec5a91c
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ userSchema.statics.processProfile = (profile) => {
}
profile.provider = _.lowerCase(profile.provider)
primaryEmail = _.toLower(primaryEmail)
return db.User.findOneAndUpdate({
email: primaryEmail,