mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-17 03:51:08 +00:00
Add comment about caching get_user_attempts output can be dangerous.
This commit is contained in:
parent
f05ad802e0
commit
eb10ecb444
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ log = getLogger(settings.AXES_LOGGER)
|
|||
class AxesDatabaseHandler(AxesHandler): # pylint: disable=too-many-locals
|
||||
"""
|
||||
Signal handler implementation that records user login attempts to database and locks users out if necessary.
|
||||
|
||||
.. note:: The get_user_attempts function is called several time during the authentication and lockout
|
||||
process, caching its output can be dangerous.
|
||||
"""
|
||||
|
||||
def reset_attempts(self, *, ip_address: str = None, username: str = None) -> int:
|
||||
|
|
|
|||
Loading…
Reference in a new issue