Skip to content

Contact registrant: email validation improvement#441

Open
mmeest wants to merge 5 commits intomasterfrom
email-validation
Open

Contact registrant: email validation improvement#441
mmeest wants to merge 5 commits intomasterfrom
email-validation

Conversation

@mmeest
Copy link
Contributor

@mmeest mmeest commented Sep 24, 2025

Close #440

Web form used lightweight email form validating in HTML5 was removed.

Validation is now done in model with email_validator gem and regex added for atleast two character top domain.

For example:
a@b.c is not valid
a@b.cc valid
a@b.ddd valid

Not valid email entries will give red error: Please enter a valid email address

@vohmar vohmar requested a review from maricavor January 16, 2026 16:15
Copy link
Contributor

@maricavor maricavor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some tests to test invalid emails?

@mmeest
Copy link
Contributor Author

mmeest commented Jan 23, 2026

Tests added

  • Model tests covering invalid and valid email formats
  • System tests verifying form validation behavior

@mmeest mmeest requested a review from maricavor January 23, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contact registrant: Improve email addresse validation

3 participants