Loading lib/Service/RecoveryEmailService.php +8 −3 Original line number Diff line number Diff line Loading @@ -273,10 +273,15 @@ class RecoveryEmailService { throw new BlacklistedEmailException($l->t('The email address is disposable. Please provide another recovery address.')); } // Only block if deliverable_email is false AND block is true (or not false) // If deliverable_email is false but block is false, let it pass if (isset($data['deliverable_email']) && $data['deliverable_email'] === false) { $isBlock = $data['block'] ?? true; if ($isBlock !== false) { $this->logger->info("User ID $username's requested recovery email address is not deliverable."); throw new BlacklistedEmailException($l->t('The email address is not deliverable. Please provide another recovery address.')); } } } catch (Exception $e) { // Optionally handle specific exceptions if needed here (e.g., timeouts, network errors) $this->logger->error("Error while validating email for user $username: " . $e->getMessage()); Loading Loading
lib/Service/RecoveryEmailService.php +8 −3 Original line number Diff line number Diff line Loading @@ -273,10 +273,15 @@ class RecoveryEmailService { throw new BlacklistedEmailException($l->t('The email address is disposable. Please provide another recovery address.')); } // Only block if deliverable_email is false AND block is true (or not false) // If deliverable_email is false but block is false, let it pass if (isset($data['deliverable_email']) && $data['deliverable_email'] === false) { $isBlock = $data['block'] ?? true; if ($isBlock !== false) { $this->logger->info("User ID $username's requested recovery email address is not deliverable."); throw new BlacklistedEmailException($l->t('The email address is not deliverable. Please provide another recovery address.')); } } } catch (Exception $e) { // Optionally handle specific exceptions if needed here (e.g., timeouts, network errors) $this->logger->error("Error while validating email for user $username: " . $e->getMessage()); Loading