Enhance IP verification process: add email resend functionality and improve error logging
This commit is contained in:
@@ -291,6 +291,9 @@ function fociz_send_new_ip_verification(int $userId, string $email, string $name
|
||||
]);
|
||||
|
||||
$res = FocizMailer::send($email, $name, "Bevestig nieuwe inloglocatie ({$ip}) — Fociz", $html);
|
||||
if (empty($res['success'])) {
|
||||
error_log("fociz_send_new_ip_verification: Mail verzenden mislukt naar {$email}: " . ($res['error'] ?? 'onbekende fout'));
|
||||
}
|
||||
return !empty($res['success']);
|
||||
} catch (Throwable $e) {
|
||||
error_log("fociz_send_new_ip_verification error: " . $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user