Skip to content

Commit

Permalink
Don't make emails lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Nov 17, 2024
1 parent 7e53d79 commit 493d326
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions iam/handlers/v1/users/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ pub struct LoginResponse {

pub async fn login<S: SharedTrait>(
Extension(shared): Extension<S>,
ValidatedJson(mut req): ValidatedJson<LoginRequest>,
ValidatedJson(req): ValidatedJson<LoginRequest>,
) -> Result<Json<LoginResponse>> {
req.email = req.email.to_lowercase();

let res = users::Entity::find()
.filter(users::Column::Email.eq(req.email.clone()))
.one(shared.db())
Expand Down

0 comments on commit 493d326

Please sign in to comment.