diff options
author | Lucas Azevedo <lhs_azevedo@hotmail.com> | 2023-08-25 02:07:57 -0300 |
---|---|---|
committer | Lucas Azevedo <lhs_azevedo@hotmail.com> | 2023-08-25 02:07:57 -0300 |
commit | fe9b9c1955cb33c5026928a9f753bb6bde6e65ab (patch) | |
tree | 923b13c0b4dc10426720bd734083ee4b9d569b72 /lib/private/Authentication/Token/PublicKeyTokenProvider.php | |
parent | a49a220fca751ba946da0a1439429933ad56a93b (diff) | |
download | nextcloud-server-fe9b9c1955cb33c5026928a9f753bb6bde6e65ab.tar.gz nextcloud-server-fe9b9c1955cb33c5026928a9f753bb6bde6e65ab.zip |
Add last-used-before option
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
Diffstat (limited to 'lib/private/Authentication/Token/PublicKeyTokenProvider.php')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyTokenProvider.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index f5fcd4dcef2..3fb11611076 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -273,6 +273,12 @@ class PublicKeyTokenProvider implements IProvider { $this->mapper->invalidateOld($rememberThreshold, IToken::REMEMBER); } + public function invalidateLastUsedBefore(string $uid, int $before): void { + $this->cache->clear(); + + $this->mapper->invalidateLastUsedBefore($uid, $before); + } + public function updateToken(IToken $token) { $this->cache->clear(); |