mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Add boolean to allow locking out by username & ip address combined
This commit is contained in:
parent
a381060c13
commit
c8da36cadb
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ MOCK_REDIS = get_setting('DEFENDER_MOCK_REDIS', False)
|
|||
# see if the user has overridden the failure limit
|
||||
FAILURE_LIMIT = get_setting('DEFENDER_LOGIN_FAILURE_LIMIT', 3)
|
||||
|
||||
LOCKOUT_BY_IP_USERNAME = get_setting('DEFENDER_LOCK_OUT_BY_IP_AND_USERNAME', False)
|
||||
|
||||
# use a specific username field to retrieve from login POST data
|
||||
USERNAME_FORM_FIELD = get_setting('DEFENDER_USERNAME_FORM_FIELD', 'username')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue