diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-04-25 10:07:54 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-04-29 15:20:17 +0200 |
commit | 04780ae30a446827880583e9012aaabdb969127e (patch) | |
tree | 54962e95c64c1ea2d5146ae2caec57667c64c772 /lib | |
parent | ac8f2e55927ba49db8cb4ed6bf52be9456471dce (diff) | |
download | nextcloud-server-04780ae30a446827880583e9012aaabdb969127e.tar.gz nextcloud-server-04780ae30a446827880583e9012aaabdb969127e.zip |
fix: Always set last activity if we update the row of an authtoken anyways
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyTokenProvider.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index 48a23b61e0b..eb3167acee3 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -308,6 +308,8 @@ class PublicKeyTokenProvider implements IProvider { if (!($token instanceof PublicKeyToken)) { throw new InvalidTokenException("Invalid token type"); } + $now = $this->time->getTime(); + $token->setLastActivity($now); $this->mapper->update($token); $this->cacheToken($token); } |