]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Always set last activity if we update the row of an authtoken anyways
authorJulius Härtl <jus@bitgrid.net>
Thu, 25 Apr 2024 08:07:54 +0000 (10:07 +0200)
committerDaniel <mail@danielkesselberg.de>
Thu, 6 Jun 2024 12:39:46 +0000 (14:39 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Authentication/Token/PublicKeyTokenProvider.php

index 3a15ba006d461e3c5ed8f12224ccf4663443e75a..ea1e5484dda7b33a5c4d25e5c5982e748f053638 100644 (file)
@@ -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);
        }