mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Enable ruff S113 rule (#11375)
* Enable ruff S113 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -56,7 +56,9 @@ def login_using_recaptcha(request):
|
||||
client_key = request.POST.get("g-recaptcha-response")
|
||||
|
||||
# post recaptcha response to Google's recaptcha api
|
||||
response = requests.post(url, data={"secret": secret_key, "response": client_key})
|
||||
response = requests.post(
|
||||
url, data={"secret": secret_key, "response": client_key}, timeout=10
|
||||
)
|
||||
# if the recaptcha api verified our keys
|
||||
if response.json().get("success", False):
|
||||
# authenticate the user
|
||||
|
Reference in New Issue
Block a user