Skip to content

Commit 86c2b91

Browse files
authored
Merge pull request #50835 from nextcloud/updateLastSeen
fix(session): Update `last_seen` when user session is validated
2 parents d1921c9 + 237f847 commit 86c2b91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/private/User/Session.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ protected function validateSession() {
218218
// Session was invalidated
219219
$this->logout();
220220
}
221+
222+
// Update last seen timestamp
223+
if ($this->isLoggedIn()) {
224+
$this->getUser()->updateLastLoginTimestamp();
225+
}
221226
}
222227

223228
/**

0 commit comments

Comments
 (0)