Tone down Axes aggressiveness

In testing, lockouts are happening far too frequently. Thus make the
following changes to Axes configuration:

* Lock out only after 4 incorrect attempts, not 3
* Set a 1-hour cooling-off period, after which the lockout will be
  removed

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-06-11 08:32:56 +12:00
parent c148849924
commit 88fb47636b
2 changed files with 4 additions and 0 deletions

View File

@ -280,6 +280,8 @@ CACHES = {
}
AXES_CACHE = "axes_cache"
AXES_LOCKOUT_TEMPLATE = "registration/account_lockout.html"
AXES_FAILURE_LIMIT = 4
AXES_COOLOFF_TIME = 1
# Full path to directory to store logs for dynamically executed tasks
TASK_LOG_DIR = "/opt/layerindex-task-logs"

View File

@ -279,6 +279,8 @@ CACHES = {
}
AXES_CACHE = "axes_cache"
AXES_LOCKOUT_TEMPLATE = "registration/account_lockout.html"
AXES_FAILURE_LIMIT = 4
AXES_COOLOFF_TIME = 1
# Full path to directory to store logs for dynamically executed tasks
TASK_LOG_DIR = "/tmp/layerindex-task-logs"