Skip to content

Commit f860af1

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Always set last activity if we update the row of an authtoken anyways
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent ce419e1 commit f860af1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Authentication/Token/PublicKeyTokenProvider.php

+2
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ public function updateToken(OCPIToken $token) {
308308
if (!($token instanceof PublicKeyToken)) {
309309
throw new InvalidTokenException("Invalid token type");
310310
}
311+
$now = $this->time->getTime();
312+
$token->setLastActivity($now);
311313
$this->mapper->update($token);
312314
$this->cacheToken($token);
313315
}

0 commit comments

Comments
 (0)