Make sure to lowercase email address entered by the user during login.

This commit is contained in:
Jocelyn Le Sage 2023-02-26 22:17:17 -05:00
parent fd30cfe98b
commit b0fd976b97

View File

@ -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()