You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Email() validation failed should raise a StopValidation error #360
Im not really clear as to what you're saying here. In this example assuming you enter a non valid email the email field will already have the error associated to it. At the validate_email method you can add a custom logic like check to see if the email might potentially be assigned already like in your example.
Either way you would want to verify if the form itself can validate via form.validate().
Summary: there needs to be a comprehensive review about which validators should stop validation versus continue. Expecting that an invalid email address doesn't continue validation does make sense, it's not clear at first why validators should have to validate the data before validating the value.
Activity
whb07 commentedon Jun 12, 2018
Im not really clear as to what you're saying here. In this example assuming you enter a non valid email the email field will already have the error associated to it. At the
validate_emailmethod you can add a custom logic like check to see if the email might potentially be assigned already like in your example.Either way you would want to verify if the form itself can validate via
form.validate().davidism commentedon Jun 12, 2018
See #61 for more discussion on inconsistency in validation.
davidism commentedon Jun 12, 2018
Summary: there needs to be a comprehensive review about which validators should stop validation versus continue. Expecting that an invalid email address doesn't continue validation does make sense, it's not clear at first why validators should have to validate the data before validating the value.