mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Improve documentation on axes.utils.reset
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
8df219e976
commit
5f61b0ae76
1 changed files with 5 additions and 0 deletions
|
|
@ -27,3 +27,8 @@ In your code, you can use the ``axes.utils.reset`` function.
|
|||
- ``reset()`` will reset all lockouts and access records.
|
||||
- ``reset(ip=ip)`` will clear lockouts and records for the given IP address.
|
||||
- ``reset(username=username)`` will clear lockouts and records for the given username.
|
||||
|
||||
Please note that if you give both ``username`` and ``ip`` arguments to ``reset``
|
||||
that attempts that have both the set IP and username are reset.
|
||||
|
||||
The effective behaviour of ``reset`` is to ``and`` the terms instead of ``or``ing them.
|
||||
|
|
|
|||
Loading…
Reference in a new issue