Update server.py

This commit is contained in:
Namhyeon Go 2024-02-19 16:08:32 +09:00 committed by GitHub
parent 979147258e
commit c005db0058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -412,12 +412,12 @@ def pwnedpasswords_test(s):
return False
# TrueCaptcha - truecaptcha.org
def truecaptcha_solve(base64string):
def truecaptcha_solve(encoded_image):
url = 'https://api.apitruecaptcha.org/one/gettext'
data = {
'userid': truecaptcha_userid,
'apikey': truecaptcha_apikey,
'data': base64string,
'data': encoded_image,
'mode': 'human'
}
response = requests.post(url = url, json = data)