From b0fd976b97d626c8506c729496708a910cd2a863 Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Sun, 26 Feb 2023 22:17:17 -0500 Subject: [PATCH] Make sure to lowercase email address entered by the user during login. --- backend/internal/token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/token.js b/backend/internal/token.js index a64b9010..ed9a45f8 100644 --- a/backend/internal/token.js +++ b/backend/internal/token.js @@ -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()