diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-17 14:36:24 +0200 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-10-18 14:49:02 +0000 |
commit | 71ee29265088462743f21381522f83a536250587 (patch) | |
tree | 60dc2a5f4784f415a8d06f045b2b95b6184cf6dd /lib/private | |
parent | 0270068fedd0282585bb5d2ffd5c823932a8ea72 (diff) | |
download | nextcloud-server-71ee29265088462743f21381522f83a536250587.tar.gz nextcloud-server-71ee29265088462743f21381522f83a536250587.zip |
Add rate limiting on lost password emails
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Security/RateLimiting/Limiter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Security/RateLimiting/Limiter.php b/lib/private/Security/RateLimiting/Limiter.php index 91657452d99..7848a5b75a7 100644 --- a/lib/private/Security/RateLimiting/Limiter.php +++ b/lib/private/Security/RateLimiting/Limiter.php @@ -45,7 +45,7 @@ class Limiter { /** * @param string $methodIdentifier * @param string $userIdentifier - * @param int $period + * @param int $period in seconds * @param int $limit * @throws RateLimitExceededException */ @@ -66,7 +66,7 @@ class Limiter { * * @param string $identifier * @param int $anonLimit - * @param int $anonPeriod + * @param int $anonPeriod in seconds * @param string $ip * @throws RateLimitExceededException */ @@ -85,7 +85,7 @@ class Limiter { * * @param string $identifier * @param int $userLimit - * @param int $userPeriod + * @param int $userPeriod in seconds * @param IUser $user * @throws RateLimitExceededException */ |