From: Raphaƫl Gertz Date: Wed, 20 Mar 2024 15:55:32 +0000 (+0100) Subject: Adds to emergency log message the registrant IP X-Git-Tag: 0.4.0 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/c367958b6f5eb5e1446f03e47b6177bf8831428e?ds=sidebyside Adds to emergency log message the registrant IP --- 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() ] ) );