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