🐛 Fixed recaptcha-env-variable

This commit is contained in:
Mawoka
2022-10-06 18:50:00 +02:00
parent c7647705bc
commit b7da6424df
+2 -2
View File
@@ -79,10 +79,10 @@ async def join_game(sid: str, data: dict):
except KeyError: except KeyError:
print("CAPTCHA FAILED") print("CAPTCHA FAILED")
return return
elif settings.recpatcha_key is not None: elif settings.recaptcha_key is not None:
async with session.post( async with session.post(
"https://www.google.com/recaptcha/api/siteverify", "https://www.google.com/recaptcha/api/siteverify",
data={"secret": settings.recpatcha_key, "response": data.captcha}, data={"secret": settings.recaptcha_key, "response": data.captcha},
) as resp: ) as resp:
try: try:
resp_data = await resp.json() resp_data = await resp.json()