Skip to content

Validate emails on frontend for trial registrations

Sam Figueroa requested to merge 325525-frontend-email-validation-errors into master

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

image
Screenshot_2022-07-28_at_09.34.03

How to set up and validate locally

  1. Enable the feature flag in console Feature.enable :trial_email_validation
  2. Visit the trial registration at http://localhost:3000/-/trial_registrations/new
  3. Enter a invalid email format
  4. See error message
  5. Visit sign up page
  6. Enter a invalid email format
  7. 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.

Edited by Serhii Yarynovskyi

Merge request reports