mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 12:33:45 +01:00
only return text in generate_challenge
This commit is contained in:
2
main.py
2
main.py
@@ -68,7 +68,7 @@ def generate_challenge_route():
|
||||
if not username in challenges:
|
||||
challenges[username] = {"text": generate_challenge(username), "completed": False}
|
||||
|
||||
return challenges[username]
|
||||
return challenges[username]["text"]
|
||||
|
||||
def resize_image_file(path, max_side=256, fmt="JPEG"):
|
||||
img = Image.open(path)
|
||||
|
||||
Reference in New Issue
Block a user