mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-11 00:53:12 +00:00
parent
ef3d527bee
commit
c94e381bb7
1 changed files with 3 additions and 0 deletions
|
|
@ -94,6 +94,9 @@ def is_user_lockable(request):
|
|||
If so, then return the value to see if this user is special
|
||||
and doesn't get their account locked out
|
||||
"""
|
||||
if request.method != 'POST':
|
||||
return False
|
||||
|
||||
try:
|
||||
field = getattr(get_user_model(), 'USERNAME_FIELD', 'username')
|
||||
kwargs = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue