From c367958b6f5eb5e1446f03e47b6177bf8831428e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 20 Mar 2024 16:55:32 +0100 Subject: [PATCH] Adds to emergency log message the registrant IP --- Controller/UserController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Controller/UserController.php b/Controller/UserController.php index 8f3e4f4..5d7a85b 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -553,7 +553,7 @@ class UserController extends AbstractController { //Log new user infos $this->logger->emergency( $this->translator->trans( - 'register: mail=%mail% locale=%locale% confirm=%confirm%', + 'register: mail=%mail% locale=%locale% confirm=%confirm% ip=%ip%', [ '%mail%' => $postMail = $_POST['register']['mail'], '%locale%' => $request->getLocale(), @@ -565,7 +565,8 @@ class UserController extends AbstractController { 'hash' => $this->slugger->hash($postSmail) ]+$this->config['route']['confirm']['context'], UrlGeneratorInterface::ABSOLUTE_URL - ) + ), + '%ip%' => $request->getClientIp() ] ) ); -- 2.41.0