Repository: pimcore/pimcore (language: php)

Issue:
[Bug]: users.lastLogin is not updated
### Pimcore version

11.0.11

### Steps to reproduce

Log in to Pimcore Admin interface.

### Actual Behavior

Database column `users.lastLogin` remains unchanged.

### Expected Behavior

Database column `users.lastLogin` is updated with the current timestamp.


Discussion / hints:

Fix patch:
diff --git a/lib/Tool/Authentication.php b/lib/Tool/Authentication.php
index 390f1a87a62..05bf7cf6158 100644
--- a/lib/Tool/Authentication.php
+++ b/lib/Tool/Authentication.php
@@ -53,7 +53,9 @@ public static function authenticateSession(Request $request = null): ?User
             $user = $token->getUser();
 
             if ($user instanceof \Pimcore\Security\User\User && self::isValidUser($user->getUser())) {
-                return $user->getUser();
+                $pimcoreUser = $user->getUser();
+                $pimcoreUser->setLastLoginDate(); //set user current login date
+                return $pimcoreUser;
             }
         }
 


Test patch: