mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Removed duplicated code
This commit is contained in:
parent
fc34d18404
commit
e1bfc7d1fe
1 changed files with 0 additions and 3 deletions
|
|
@ -156,9 +156,6 @@ def is_user_lockable(request, credentials=None):
|
|||
If so, then return the value to see if this user is special
|
||||
and doesn't get their account locked out
|
||||
"""
|
||||
if hasattr(request.user, 'nolockout'):
|
||||
return not request.user.nolockout
|
||||
|
||||
if request.method != 'POST':
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue