Validate emails on frontend for trial registrations
What does this MR do and why?
Add a validator implementation for email that latches onto the .js-validate-email
for EE. This feature is guarded behind the feature flag trial_email_validation
.
Screenshots or screen recordings
![]() |
![]() |
How to set up and validate locally
- Enable the feature flag in console
Feature.enable :trial_email_validation
- Visit the trial registration at http://localhost:3000/-/trial_registrations/new
- Enter a invalid email format
- See error message
- Visit sign up page
- Enter a invalid email format
- See error message
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Serhii Yarynovskyi