aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Security
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-19 12:09:57 +0100
committerJoas Schilling <coding@schilljs.com>2020-08-19 11:20:35 +0200
commite66bc4a8a74ad6071569ea707e986a0e21aca66d (patch)
tree5e96164d0195f944a737e47a5dbe70a116b2ab64 /lib/public/Security
parent4ff492a4927accb2e09559467477a1815c90593b (diff)
downloadnextcloud-server-e66bc4a8a74ad6071569ea707e986a0e21aca66d.tar.gz
nextcloud-server-e66bc4a8a74ad6071569ea707e986a0e21aca66d.zip
Send "429 Too Many Requests" in case of brute force protection
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Security')
-rw-r--r--lib/public/Security/Bruteforce/MaxDelayReached.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/Security/Bruteforce/MaxDelayReached.php b/lib/public/Security/Bruteforce/MaxDelayReached.php
new file mode 100644
index 00000000000..817ef0e60c3
--- /dev/null
+++ b/lib/public/Security/Bruteforce/MaxDelayReached.php
@@ -0,0 +1,30 @@
+<?php
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCP\Security\Bruteforce;
+
+/**
+ * Class MaxDelayReached
+ * @since 19.0
+ */
+class MaxDelayReached extends \RuntimeException {
+}