mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
feat: email retry page on 550 rejection; confirmation_email optional in admin form
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user