summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
Diffstat (limited to 'module/web')
-rw-r--r--module/web/json_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py
index 53caeb9f1..959b3d974 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -328,7 +328,7 @@ def set_captcha():
task = PYLOAD.getCaptchaTask()
- if id:
+ if task.tid >= 0:
src = "data:image/%s;base64,%s" % (task.type, task.data)
return {'captcha': True, 'id': task.tid, 'src': src, 'result_type' : task.resultType}