mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-05 22:24:46 +00:00
Return cooloff timedelta as context variable
Closes https://github.com/jazzband/django-axes/issues/502
This commit is contained in:
parent
a31582c1b0
commit
860e8b32ad
1 changed files with 2 additions and 1 deletions
|
|
@ -288,7 +288,8 @@ def get_lockout_response(request, credentials: dict = None) -> HttpResponse:
|
|||
{
|
||||
"cooloff_time": get_cool_off_iso8601(
|
||||
cool_off
|
||||
) # differing old name is kept for backwards compatibility
|
||||
), # differing old name is kept for backwards compatibility
|
||||
"cooloff_timedelta": cool_off,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue