Update server.py

This commit is contained in:
Namhyeon Go 2024-02-19 14:29:41 +09:00 committed by GitHub
parent 6e502fc5ba
commit 2653992795
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -376,5 +376,17 @@ def pwnedpasswords_test(s):
else: else:
return False return False
# TrueCaptcha - truecaptcha.org
def truecaptcha_solve(userid, apikey, encoded_string):
url = 'https://api.apitruecaptcha.org/one/gettext'
data = {
'userid': userid,
'apikey': apikey,
'data': encoded_string
}
response = requests.post(url = url, json = data)
data = response.json()
return data
if __name__== "__main__": if __name__== "__main__":
start() start()