From eb345e17ca32cf1a011ec6c1d637b00335e53958 Mon Sep 17 00:00:00 2001 From: Lang <7system7@gmail.com> Date: Wed, 15 Apr 2026 20:13:38 +0200 Subject: [PATCH] chg: pkg: new version release !skipChangelog --- src/Controller/SecurityController.php | 10 ++++++++++ templates/emails/activation.html.twig | 4 ++-- templates/emails/reset_password.html.twig | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 79bac1a..b5c8e20 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -92,6 +92,11 @@ class SecurityController extends AbstractController UrlGeneratorInterface::ABSOLUTE_URL, ); + // Ensure HTTPS scheme in production + if ($this->getParameter('kernel.environment') === 'prod') { + $activationUrl = str_replace('http://', 'https://', $activationUrl); + } + $mailer->send( new TemplatedEmail() ->from('noreply@mineseeker.hu') @@ -143,6 +148,11 @@ class SecurityController extends AbstractController UrlGeneratorInterface::ABSOLUTE_URL, ); + // Ensure HTTPS scheme in production + if ($this->getParameter('kernel.environment') === 'prod') { + $resetUrl = str_replace('http://', 'https://', $resetUrl); + } + $mailer->send( new TemplatedEmail() ->from('noreply@mineseeker.hu') diff --git a/templates/emails/activation.html.twig b/templates/emails/activation.html.twig index fe858b2..6e78d83 100644 --- a/templates/emails/activation.html.twig +++ b/templates/emails/activation.html.twig @@ -77,7 +77,7 @@
+