Description
Symfony version(s) affected
7.2.5
Description
According to the docs (https://symfony.com/doc/current/reference/configuration/framework.html#email-validation-mode), the default validation mode can be changed to one of the values supported by the email validator, which are (according to this page: https://symfony.com/doc/current/reference/constraints/Email.html#mode) html5
, html5-allow-no-tld
, strict
.
But when I try to change the default value to html5-allow-no-tld
, I get a 500 error with this message:
The value "html5-allow-no-tld" is not allowed for path "framework.validation.email_validation_mode". Permissible values: "html5", "loose", "strict"
I think there is probably a mismatch between the values expected by the validator and the ones allowed by the framework config.
How to reproduce
Change the framework.validation.email_validation_mode
config to html5-allow-no-tld
.
Possible Solution
I believe this line might be the problem: