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

@@ -16,10 +16,10 @@ const User = require("../../models/user");
}, (email, password, done) => {
User.findOne({
$or: [{
email
email: { '$regex': email, $options: 'i' }
}, {
local: {
email
email: { '$regex': email, $options: 'i' }
}
}]
}, (err, user) => {