From 5bae2b3ea3d0da3ce4e1881513c5cab25c8196d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 19 Jun 2015 11:36:49 +0200 Subject: Fixed bug in app.py with none existing variable. --- pyload/webui/App/app.py | 2 +- pyload/webui/App/utils.py | 2 +- 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'] -- cgit v1.2.3