fix: Always set last activity if we update the row of an authtoken anyways

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2024-04-25 10:07:54 +02:00
parent ac8f2e5592
commit 04780ae30a
1 changed files with 2 additions and 0 deletions

View 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);
}