Skip to content

Commit

Permalink
refactor: fix prospector errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotasoshu authored and wannacfuture committed May 13, 2023
1 parent 32396eb commit 2989cc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions axes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from django.http import HttpRequest

from axes.conf import settings
from axes.handlers.proxy import AxesProxyHandler
from axes.helpers import get_client_ip_address, get_lockout_parameters

Expand Down Expand Up @@ -55,7 +54,7 @@ def reset_request(request: HttpRequest) -> int:
ip_required = True
username_required = True
break
elif "username" in param:
if "username" in param:
username_required = True
elif "ip_address" in param:
ip_required = True
Expand Down

0 comments on commit 2989cc2

Please sign in to comment.