summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Bastian Köcher <git@kchr.de> 2015-06-19 11:36:49 +0200
committerGravatar Bastian Köcher <git@kchr.de> 2015-06-19 11:36:49 +0200
commit5bae2b3ea3d0da3ce4e1881513c5cab25c8196d7 (patch)
tree927b27eb41559b794a1230a6a59dd3db7426850d
parentGeneral fixup (2) (diff)
downloadpyload-5bae2b3ea3d0da3ce4e1881513c5cab25c8196d7.tar.xz
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']