From ffa568275fef00224dc196e3ffddccdc3d5b3c56 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 5 Oct 2023 00:12:48 +0300 Subject: [PATCH] init user session on dashboard page --- src/Controller/UserController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 2b543bc..6c867f4 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -40,6 +40,12 @@ class UserController extends AbstractController TimeService $timeService ): Response { + // Init user session + $userService->init( + $request->getClientIp() + ); + + // Build activity history $activities = []; foreach ($userService->getAllByAddedFieldDesc() as $user) {