mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
fixed case in email
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user