Skip to content

Commit b0fd976

Browse files
committed
Make sure to lowercase email address entered by the user during login.
1 parent fd30cfe commit b0fd976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/internal/token.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424

2525
return userModel
2626
.query()
27-
.where('email', data.identity)
27+
.where('email', data.identity.toLowerCase().trim())
2828
.andWhere('is_deleted', 0)
2929
.andWhere('is_disabled', 0)
3030
.first()

0 commit comments

Comments
 (0)