diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-02-15 11:31:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-15 11:31:41 +0100 |
commit | a1bc474607825c4f1d1a30a7eb441ad6c8960f1a (patch) | |
tree | 17d6cd03ae04039e26f5fa2de8f41a76fa688079 | |
parent | ba3868a403100c31ba22ebce45e6c4f4ddf95aa1 (diff) | |
download | nextcloud-server-updateLastSeen.tar.gz nextcloud-server-updateLastSeen.zip |
fix(session): Update last seen when user session is validatedupdateLastSeen
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r-- | lib/private/User/Session.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 408ebffb390..7e4603f697a 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -210,6 +210,11 @@ class Session implements IUserSession, Emitter { // Session was invalidated $this->logout(); } + + // Update last seen timestamp + if ($this->isLoggedIn()) { + $this->getUser()->updateLastLoginTimestamp(); + } } /** |