From e1bfc7d1feb363e5953434abc70a3991c080d09e Mon Sep 17 00:00:00 2001 From: Camilo Nova Date: Fri, 11 Jan 2019 12:43:11 -0500 Subject: [PATCH] Removed duplicated code --- axes/attempts.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/axes/attempts.py b/axes/attempts.py index 4fe7725..b1da3f7 100644 --- a/axes/attempts.py +++ b/axes/attempts.py @@ -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