Skip to content

Commit

Permalink
AYS-661 | Refactor: revert email validation method in EmailAddressVal…
Browse files Browse the repository at this point in the history
…idator.
  • Loading branch information
m1erla committed Jan 17, 2025
1 parent 3f71542 commit 93d2655
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public boolean isValid(String email, ConstraintValidatorContext constraintValida
return this.buildViolation(constraintValidatorContext, "email is not in a valid format");
}

if (email.length() < 6 || email.length() > 254) {
return this.buildViolation(constraintValidatorContext, "length must be between 6 and 254 characters");
}

return true;
}

Expand Down

0 comments on commit 93d2655

Please sign in to comment.