Make sure to lowercase email address entered by the user during login.
This commit is contained in:
parent
fd30cfe98b
commit
b0fd976b97
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
|
||||
return userModel
|
||||
.query()
|
||||
.where('email', data.identity)
|
||||
.where('email', data.identity.toLowerCase().trim())
|
||||
.andWhere('is_deleted', 0)
|
||||
.andWhere('is_disabled', 0)
|
||||
.first()
|
||||
|
|
Loading…
Reference in a new issue