Skip to content

Commit

Permalink
fix get_client_parameters when AXES_USE_USER_AGENT=True
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy authored and aleksihakli committed Nov 24, 2022
1 parent f2d3009 commit ce3f2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axes/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_client_parameters(username: str, ip_address: str, user_agent: str) -> li

if settings.AXES_USE_USER_AGENT:
# 4. The HTTP User-Agent can be used to track e.g. one browser
filter_query.append({"user_agent": user_agent})
filter_query[0]["user_agent"] = user_agent

return filter_query

Expand Down

0 comments on commit ce3f2f2

Please sign in to comment.