aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/PublicKeyTokenProvider.php
diff options
context:
space:
mode:
authorLucas Azevedo <lhs_azevedo@hotmail.com>2023-08-25 02:07:57 -0300
committerLucas Azevedo <lhs_azevedo@hotmail.com>2023-08-25 02:07:57 -0300
commitfe9b9c1955cb33c5026928a9f753bb6bde6e65ab (patch)
tree923b13c0b4dc10426720bd734083ee4b9d569b72 /lib/private/Authentication/Token/PublicKeyTokenProvider.php
parenta49a220fca751ba946da0a1439429933ad56a93b (diff)
downloadnextcloud-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.php6
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();