Fix auth fail when using uppercase in email

This commit is contained in:
NGPixel committed 2017-03-12 12:15:29 -04:00
1 parent 80aa30009b
commit bfcec5a91c
2 files changed
+2 -1

No files matched your search

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