From 66b5f1781131cb3ea771f144b818a8c56a4c1d96 Mon Sep 17 00:00:00 2001 From: Camilo Nova Date: Thu, 23 Nov 2017 07:52:58 -0500 Subject: [PATCH] Rename parameter. Fixes #267 --- axes/test_settings.py | 2 +- docs/configuration.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/axes/test_settings.py b/axes/test_settings.py index 9bae219..c2906f6 100644 --- a/axes/test_settings.py +++ b/axes/test_settings.py @@ -74,4 +74,4 @@ USE_TZ = False LOGIN_REDIRECT_URL = '/admin/' -AXES_LOGIN_FAILURE_LIMIT = 10 +AXES_FAILURE_LIMIT = 10 diff --git a/docs/configuration.rst b/docs/configuration.rst index d173c7c..9a2fe11 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -25,7 +25,7 @@ Customizing Axes You have a couple options available to you to customize ``django-axes`` a bit. These should be defined in your ``settings.py`` file. -* ``AXES_LOGIN_FAILURE_LIMIT``: The number of login attempts allowed before a +* ``AXES_FAILURE_LIMIT``: The number of login attempts allowed before a record is created for the failed logins. 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)?