Skip to content

Commit 26232dd

Browse files
juliusknorrkesselb
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 2ff8e4a commit 26232dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Authentication/Token/PublicKeyTokenProvider.php

Lines changed: 2 additions & 0 deletions
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)