Spaces:
Runtime error
Runtime error
Adam Jirkovsky
commited on
Commit
·
a825d33
1
Parent(s):
bfaac77
Edit captcha refresh
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def generate_captcha(width=200, height=150, length=4):
|
|
168 |
def validate_captcha(input, text, img):
|
169 |
if input == text:
|
170 |
return True, styled_message("Correct!"), text, img
|
171 |
-
img, text
|
172 |
return False, styled_error("Incorrect! Please retry with the new code."), text, img
|
173 |
|
174 |
|
|
|
168 |
def validate_captcha(input, text, img):
|
169 |
if input == text:
|
170 |
return True, styled_message("Correct!"), text, img
|
171 |
+
img, text = generate_captcha()
|
172 |
return False, styled_error("Incorrect! Please retry with the new code."), text, img
|
173 |
|
174 |
|