rate_limit: Add management command to reset auth rate limit.

The auth attempt rate limit is quite low (on purpose), so this can be a
common scenario where a user asks their admin to reset the limit instead
of waiting. We should provide a tool for administrators to handle such
requests without fiddling around with code in manage.py shell.
This commit is contained in:
Mateusz Mandera
2021-08-17 18:02:32 +02:00
committed by Tim Abbott
parent 56344e4765
commit fdbde59b07
2 changed files with 25 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ There are dozens of useful management commands under
For most purposes, deactivating users is preferred, since that does not
alter message history for other users.
See the `./manage.py delete_user --help` documentation for details.
* `./manage.py clear_auth_rate_limit_history`: If a user failed authenticaton
attempts too many times and further attempts are disallowed by the rate limiter,
this can be used to reset the limit.
All of our management commands have internal documentation available
via `manage.py command_name --help`.