You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/core/admin/mailu
bors[bot] b8b1699f9e
Merge #1359
1359: Refactor the rate limiting code r=mergify[bot] a=kaiyou

## What type of PR?

Enhancement

## What does this PR do?

Rate limiting was already redesigned to use Python limits. This
introduced some unexpected behavior, including the fact that only
one criteria is supported per limiter. Docs and setup utility are
updated with this in mind.

Also, the code was made more generic, so limiters can be delivered
for something else than authentication. Authentication-specific
code was moved directly to the authentication routine.

### Related issue(s)

No specific issue.

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: kaiyou <pierre@jaury.eu>
4 years ago
..
internal Merge #1359 4 years ago
translations Translated using Weblate (Polish) 4 years ago
ui Add a title to Mailu-Admin pages 5 years ago
__init__.py Fix the way we handle the application context 6 years ago
configuration.py Make rate limit for subnet (webmail) configurable 5 years ago
debug.py Clean most of the refactored code 6 years ago
dkim.py Upgrading to a 2048-bit DKIM key 5 years ago
limiter.py Refactor the rate limiting code 4 years ago
manage.py Merge #883 5 years ago
models.py Don't remove the address extension in postfix 5 years ago
utils.py Refactor the rate limiting code 4 years ago