summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/Handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/thriftbackend/Handler.py')
-rw-r--r--module/remote/thriftbackend/Handler.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/remote/thriftbackend/Handler.py b/module/remote/thriftbackend/Handler.py
index d71b4337e..7209c6bd5 100644
--- a/module/remote/thriftbackend/Handler.py
+++ b/module/remote/thriftbackend/Handler.py
@@ -6,6 +6,8 @@ from thriftgen.pyload.Pyload import Iface
from module.PyFile import PyFile
from module.utils import freeSpace
+from base64 import b64encode
+
class Handler(Iface):
def __init__(self, backend):
self.backend = backend
@@ -442,10 +444,10 @@ class Handler(Iface):
Parameters:
- exclusive
"""
- tid, data, type = self.serverMethods.get_captcha_task(exclusive)
- tid = int(tid)
-
- t = CaptchaTask(tid, data, type)
+ t = CaptchaTask()
+ t.tid, t.data, t.type = self.serverMethods.get_captcha_task(exclusive)
+ t.tid = int(t.tid)
+ t.data = b64encode(t.data)
return t
def getCaptchaTaskStatus(self, tid):