mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-09 16:14:46 +00:00
Add username to LOCKOUT_TEMPLATE template context
So I can use their username in the lockout template, e.g. something like this,
This commit is contained in:
parent
493184b3e7
commit
68f0d5ee86
1 changed files with 1 additions and 0 deletions
|
|
@ -340,6 +340,7 @@ def lockout_response(request):
|
|||
context = {
|
||||
'cooloff_time': COOLOFF_TIME,
|
||||
'failure_limit': FAILURE_LIMIT,
|
||||
'username': request.POST.get(USERNAME_FORM_FIELD, '')
|
||||
}
|
||||
return render_to_response(LOCKOUT_TEMPLATE, context,
|
||||
context_instance=RequestContext(request))
|
||||
|
|
|
|||
Loading…
Reference in a new issue