fixed case in email

This commit is contained in:
Luke Berndt
2023-07-09 21:02:22 -04:00
parent 8fb47071c5
commit a99c3b5090
3 changed files with 14 additions and 12 deletions

View File

@@ -14,10 +14,10 @@ const local = new LocalStrategy({
}, async (email, password, done) => {
const user = await User.findOne({
$or: [{
email
email: { '$regex': email, $options: 'i' }
}, {
local: {
email
email: { '$regex': email, $options: 'i' }
}
}]
});