diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2024-05-16 12:00:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 12:00:32 +0200 |
commit | fe7217d2d3e27ef039b5565378acad96cb8be2ee (patch) | |
tree | a35e6be43b5bbb5977510c69030c70ba42856dbf /lib/private/Authentication | |
parent | 7e1c30f82a63fbea8c269e0eec38291377f32604 (diff) | |
parent | 04780ae30a446827880583e9012aaabdb969127e (diff) | |
download | nextcloud-server-fe7217d2d3e27ef039b5565378acad96cb8be2ee.tar.gz nextcloud-server-fe7217d2d3e27ef039b5565378acad96cb8be2ee.zip |
Merge pull request #45026 from nextcloud/fix/token-update
Avoid updating the same oc_authtoken row twice
Diffstat (limited to 'lib/private/Authentication')
-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 3a15ba006d4..ea1e5484dda 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); } |