Skip to content

Commit

Permalink
bugfix: use to_lowercase for email validation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Dec 20, 2024
1 parent 6e47473 commit f264f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/operators/invitation_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub async fn check_inv_valid(
ServiceError::InternalServerError("Could not find invitation for user".to_string())
})?;

if invitation.email != email {
if invitation.email.to_lowercase() != email.to_lowercase() {
return Err(ServiceError::BadRequest(
"Email does not match invitation".to_string(),
));
Expand Down

0 comments on commit f264f09

Please sign in to comment.