hotfix api url following manual failed request tests

This commit is contained in:
sebastien 2024-11-06 13:51:50 +01:00
parent 025da08fd3
commit 56f0c9b51b

View file

@ -107,7 +107,7 @@ def compromised_password_validator(form, field):
hashed_password[5:].upper(),
)
api_url = f"https://api2.pwnedpasswords.com/range/{hashed_password_prefix}"
api_url = f"https://api.pwnedpasswords.com/range/{hashed_password_prefix}"
try:
response = requests.api.get(api_url, timeout=10)