fix(api): revert regex based email query (#37393)
This commit is contained in:
@ -61,9 +61,7 @@ export default function(UserIdent) {
|
||||
}
|
||||
|
||||
if (provider === 'email') {
|
||||
return User.findOne$({
|
||||
where: { email: new RegExp(email.replace('.', '\\.'), 'i') }
|
||||
})
|
||||
return User.findOne$({ where: { email } })
|
||||
.flatMap(user => {
|
||||
return user
|
||||
? Observable.of(user)
|
||||
|
Reference in New Issue
Block a user