From 493d326a34982a06400a3f0caf0eb9cc3c9d50c2 Mon Sep 17 00:00:00 2001 From: Szepesi Tibor Date: Sun, 17 Nov 2024 16:45:05 +0100 Subject: [PATCH] Don't make emails lowercase --- iam/handlers/v1/users/login.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iam/handlers/v1/users/login.rs b/iam/handlers/v1/users/login.rs index 5273ce0..09fc94b 100644 --- a/iam/handlers/v1/users/login.rs +++ b/iam/handlers/v1/users/login.rs @@ -32,10 +32,8 @@ pub struct LoginResponse { pub async fn login( Extension(shared): Extension, - ValidatedJson(mut req): ValidatedJson, + ValidatedJson(req): ValidatedJson, ) -> Result> { - req.email = req.email.to_lowercase(); - let res = users::Entity::find() .filter(users::Column::Email.eq(req.email.clone())) .one(shared.db())