feat: email retry page on 550 rejection; confirmation_email optional in admin form

This commit is contained in:
Pontoporeia committed 2026-05-05 11:04:52 +02:00
1 parent 898a87789b
commit da53bf5d7a
9 files changed
+260 -14

No files matched your search

@@ -325,14 +325,13 @@ class ThesisCreateController
}
}
// Confirmation e-mail (required)
// Confirmation e-mail (optional)
$confirmationEmail = trim($post['confirmation_email'] ?? '');
if ($confirmationEmail === '') {
throw new Exception("L'adresse e-mail de confirmation est requise.");
}
$confirmationEmail = filter_var($confirmationEmail, FILTER_VALIDATE_EMAIL);
if ($confirmationEmail === false) {
throw new Exception("L'adresse e-mail de confirmation n'est pas valide.");
if ($confirmationEmail !== '') {
$confirmationEmail = filter_var($confirmationEmail, FILTER_VALIDATE_EMAIL);
if ($confirmationEmail === false) {
throw new Exception("L'adresse e-mail de confirmation n'est pas valide.");
}
}
return compact(