Fix nested list in DEFENDER_LOCKOUT_TEMPLATE

This commit is contained in:
hashlash 2022-02-20 17:13:55 +07:00 committed by Ken Cochrane
parent 43e6fcdf13
commit b90e545d20

View file

@ -353,9 +353,11 @@ These should be defined in your ``settings.py`` file.
old failed login attempts will be forgotten. An integer, will be interpreted as a
number of seconds. If ``0``\ , the locks will not expire. [Default: ``300``\ ]
* ``DEFENDER_LOCKOUT_TEMPLATE``\ : String: [Default: ``None``\ ] If set, specifies a template to render when a user is locked out. Template receives the following context variables:
* ``cooloff_time_seconds``\ : The cool off time in seconds
* ``cooloff_time_minutes``\ : The cool off time in minutes
* ``failure_limit``\ : The number of failures before you get blocked.
* ``DEFENDER_USERNAME_FORM_FIELD``\ : String: the name of the form field that contains your
users usernames. [Default: ``username``\ ]
* ``DEFENDER_CACHE_PREFIX``\ : String: The cache prefix for your defender keys.