summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/json.py
diff options
context:
space:
mode:
authorGravatar fedeG <federicogonzalez761@gmail.com> 2015-04-20 22:01:18 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:01:46 +0200
commit1e2e91091664c2fca6a187804b2041eab757dbe3 (patch)
treebd31644da726422a2a076b0b68fcda6a75c982b6 /pyload/webui/app/json.py
parentPEP-8, Python Zen, refactor and reduce code (part 14 in master module/threads) (diff)
downloadpyload-1e2e91091664c2fca6a187804b2041eab757dbe3.tar.xz
PEP-8, Python Zen, refactor and reduce code (part 15 in master module/webui/app)
Conflicts: pyload/webui/app/api.py pyload/webui/app/cnl.py pyload/webui/app/json.py pyload/webui/app/pyloadweb.py pyload/webui/app/utils.py
Diffstat (limited to 'pyload/webui/app/json.py')
-rw-r--r--pyload/webui/app/json.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pyload/webui/app/json.py b/pyload/webui/app/json.py
index 30778f1f7..3b72cb7ce 100644
--- a/pyload/webui/app/json.py
+++ b/pyload/webui/app/json.py
@@ -9,9 +9,7 @@ from shutil import copyfileobj
from bottle import route, request, HTTPError
from pyload.webui import PYLOAD
-
from pyload.webui.app.utils import login_required, render_to_response, toDict
-
from pyload.utils import decode, formatSize
@@ -227,7 +225,7 @@ def set_captcha():
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}
+ return {'captcha': True, 'id': task.tid, 'src': src, 'result_type': task.resultType}
else:
return {'captcha': False}
@@ -307,7 +305,6 @@ def update_accounts():
@route('/json/change_password', method='POST')
def change_password():
-
user = request.POST['user_login']
oldpw = request.POST['login_current_password']
newpw = request.POST['login_new_password']