aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Security
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-16 17:40:38 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-21 16:40:24 +0200
commit124588d4a64f518aef9270002e72c3604ddb3077 (patch)
tree6de1383e2ec21fb17fd9e908ab7638932617a681 /lib/public/Security
parentb2fd283a300d0c5b260d50bbf6ab7574b24dafe9 (diff)
downloadnextcloud-server-124588d4a64f518aef9270002e72c3604ddb3077.tar.gz
nextcloud-server-124588d4a64f518aef9270002e72c3604ddb3077.zip
fix: Make bypass function public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Security')
-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)
*