Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.8] Implement better email validation support #29589

Merged
merged 2 commits into from
Aug 15, 2019
Merged

[5.8] Implement better email validation support #29589

merged 2 commits into from
Aug 15, 2019

Commits on Aug 15, 2019

  1. Implement better email validation support

    These changes allow for multiple email validators to be added when checking for valid emails. This is a continuation of the previous PR: #26503
    
    Basically this allows for two things:
    
    - Make use of multiple email validators provided by the egulias/email-validator package
    - Use the previous (and much requested) filter_var validation
    
    By default nothing's breaking because it'll still use the RFC validator to when no validators are passed to the email validation rule. But you can opt to include different ones or multiple ones:
    
        'email' => 'email:rfc,dns'
    
    Or opt for the pre-5.8 behavior:
    
        'email' => 'email:filter'
    
    Which will use `filter_var` to validate the email address. This should give people a little more flexibility when doing email validation.
    driesvints committed Aug 15, 2019
    Configuration menu
    Copy the full SHA
    c2ce388 View commit details
    Browse the repository at this point in the history
  2. Fix code style issues

    driesvints committed Aug 15, 2019
    Configuration menu
    Copy the full SHA
    ff86631 View commit details
    Browse the repository at this point in the history