mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
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:
parent
9b14de0950
commit
41528b1541
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue