Overview
Comment: | Fix email check |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
bc717498b5c455e6d5437b1061481455 |
User & Date: | bohwaz on 2022-06-17 13:43:12 |
Other Links: | manifest | tags |
Context
2022-06-20
| ||
18:42 | Fix PHP 8.1 warning with null value check-in: 475924850e user: bohwaz tags: trunk, stable | |
2022-06-17
| ||
13:43 | Fix email check check-in: bc717498b5 user: bohwaz tags: trunk, stable | |
2022-06-15
| ||
13:11 | Add some help text on statement and balance sheet check-in: 23b7b908c7 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Entities/Users/Email.php from [95d5d84571] to [2c7c55fe40].
︙ | ︙ | |||
114 115 116 117 118 119 120 121 122 123 124 125 126 127 | // Ce domaine n'existe pas (MX inexistant), erreur de saisie courante if ($host == 'gmail.fr') { throw new UserException('Adresse invalide : "gmail.fr" n\'existe pas, il faut utiliser "gmail.com"'); } if (!SMTP::checkEmailIsValid($email, false)) { foreach (self::COMMON_DOMAINS as $common_domain) { similar_text($common_domain, $host, $percent); if ($percent > 90) { throw new UserException(sprintf('Adresse e-mail invalide : avez-vous fait une erreur, par exemple "%s" à la place de "%s" ?', $host, $common_domain)); } } | > > > > | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | // Ce domaine n'existe pas (MX inexistant), erreur de saisie courante if ($host == 'gmail.fr') { throw new UserException('Adresse invalide : "gmail.fr" n\'existe pas, il faut utiliser "gmail.com"'); } if (!SMTP::checkEmailIsValid($email, false)) { if (!trim($host)) { throw new UserException('Adresse e-mail invalide : vérifiez que vous n\'avez pas fait une faute de frappe.'); } foreach (self::COMMON_DOMAINS as $common_domain) { similar_text($common_domain, $host, $percent); if ($percent > 90) { throw new UserException(sprintf('Adresse e-mail invalide : avez-vous fait une erreur, par exemple "%s" à la place de "%s" ?', $host, $common_domain)); } } |
︙ | ︙ |