summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-19 14:22:51 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-19 14:22:51 +0200
commit3abaaac6a604882eccab34fb6364f77b29c436ce (patch)
tree927b27eb41559b794a1230a6a59dd3db7426850d
parentGeneral fixup (2) (diff)
parentFixed bug in app.py with none existing variable. (diff)
downloadpyload-3abaaac6a604882eccab34fb6364f77b29c436ce.tar.xz
Merge pull request #1525 from bkchr/app-fix
Fixed bug in app.py with none existing variable.
-rw-r--r--pyload/webui/App/app.py2
-rw-r--r--pyload/webui/App/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyload/webui/App/app.py b/pyload/webui/App/app.py
index bb4a2ff8e..4fade46de 100644
--- a/pyload/webui/App/app.py
+++ b/pyload/webui/App/app.py
@@ -138,7 +138,7 @@ def login_post():
if not info:
return render_to_response("login.html", {"errors": True}, [pre_processor])
- set_session(request, info)
+ set_session(info)
return bottle.redirect("/")
diff --git a/pyload/webui/App/utils.py b/pyload/webui/App/utils.py
index e827552df..fe8fd1605 100644
--- a/pyload/webui/App/utils.py
+++ b/pyload/webui/App/utils.py
@@ -65,7 +65,7 @@ def set_permission(perms):
return permission
-def set_session(request, info):
+def set_session(info):
s = bottle.request.environ.get('beaker.session')
s['authenticated'] = True
s['user_id'] = info['id']