mirror of https://github.com/nextcloud/server
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
ac8f2e5592
commit
04780ae30a
|
@ -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 New Issue