Skip to content

Commit

Permalink
Add documentation for updated AXES_FAILURE_LIMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksihakli committed Jun 14, 2019
1 parent 4efbace commit 9c7c5c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/4_configuration.rst
Expand Up @@ -16,8 +16,12 @@ The following ``settings.py`` options are available for customizing Axes behavio

* ``AXES_ENABLED``: Enable or disable Axes plugin functionality,
for example in test runner setup. Default: ``True``
* ``AXES_FAILURE_LIMIT``: The number of login attempts allowed before a
record is created for the failed logins.
* ``AXES_FAILURE_LIMIT``: The integer number of login attempts allowed before a
record is created for the failed logins. This can also be a callable
or a dotted path to callable that returns an integer and all of the following are valid:
``AXES_FAILURE_LIMIT = 42``,
``AXES_FAILURE_LIMIT = lambda *args: 42``, and
``AXES_FAILURE_LIMIT = 'project.app.get_login_failure_limit'``.
Default: ``3``
* ``AXES_LOCK_OUT_AT_FAILURE``: After the number of allowed login attempts
are exceeded, should we lock out this IP (and optional user agent)?
Expand Down

0 comments on commit 9c7c5c1

Please sign in to comment.