summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-16 17:40:38 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-23 06:44:08 +0200
commit759fc11f39839801e75a46ea619508b587448727 (patch)
tree6299c12f21407af5ac9a043130a397c154bab240 /lib/public
parentb5dbb4d9f2f0c3b8ccfa16704cdcb7abf231d56e (diff)
downloadnextcloud-server-759fc11f39839801e75a46ea619508b587448727.tar.gz
nextcloud-server-759fc11f39839801e75a46ea619508b587448727.zip
fix: Make bypass function public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Security/Bruteforce/IThrottler.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Security/Bruteforce/IThrottler.php b/lib/public/Security/Bruteforce/IThrottler.php
index 03c8c56a23c..620a53fd354 100644
--- a/lib/public/Security/Bruteforce/IThrottler.php
+++ b/lib/public/Security/Bruteforce/IThrottler.php
@@ -66,6 +66,16 @@ interface IThrottler {
*/
public function registerAttempt(string $action, string $ip, array $metadata = []): void;
+
+ /**
+ * Check if the IP is allowed to bypass the brute force protection
+ *
+ * @param string $ip
+ * @return bool
+ * @since 28.0.0
+ */
+ public function isBypassListed(string $ip): bool;
+
/**
* Get the throttling delay (in milliseconds)
*