mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Merge pull request #123 from Moco/master
Add username to LOCKOUT_TEMPLATE template context
This commit is contained in:
commit
30c218cc8a
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