diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-15 14:00:42 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-15 14:00:42 +0100 |
commit | 8fbde7a43b4f838df0379fdb4acd791713b639b7 (patch) | |
tree | bb7e78afc6a34823e078ab64c6965321c6866e85 /pyload/remote/wsbackend/AbstractHandler.py | |
parent | added new file states (diff) | |
download | pyload-8fbde7a43b4f838df0379fdb4acd791713b639b7.tar.xz |
more options to get webUI through proxy working
Diffstat (limited to 'pyload/remote/wsbackend/AbstractHandler.py')
-rw-r--r-- | pyload/remote/wsbackend/AbstractHandler.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pyload/remote/wsbackend/AbstractHandler.py b/pyload/remote/wsbackend/AbstractHandler.py index 842d87473..e69ff2573 100644 --- a/pyload/remote/wsbackend/AbstractHandler.py +++ b/pyload/remote/wsbackend/AbstractHandler.py @@ -46,13 +46,12 @@ class AbstractHandler: req.api = None #when api is set client is logged in # allow login via session when webinterface is active - if self.core.config['webinterface']['activated']: - cookie = req.headers_in.getheader('Cookie') - s = self.load_session(cookie) - if s: - uid = s.get('uid', None) - req.api = self.api.withUserContext(uid) - self.log.debug("WS authenticated user with cookie: %d" % uid) + cookie = req.headers_in.getheader('Cookie') + s = self.load_session(cookie) + if s: + uid = s.get('uid', None) + req.api = self.api.withUserContext(uid) + self.log.debug("WS authenticated user with cookie: %d" % uid) self.on_open(req) |