diff options
Diffstat (limited to 'pyload/remote')
| -rw-r--r-- | pyload/remote/wsbackend/AbstractHandler.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/pyload/remote/wsbackend/AbstractHandler.py b/pyload/remote/wsbackend/AbstractHandler.py index f540435c4..cad749ff8 100644 --- a/pyload/remote/wsbackend/AbstractHandler.py +++ b/pyload/remote/wsbackend/AbstractHandler.py @@ -121,11 +121,12 @@ class AbstractHandler:          # Cookies login when one argument is given          if len(args) == 1:              s = self.load_session(args) +            if s: +                user = User(uid=s.get('uid', None))          else:              s = self.api.checkAuth(*args, **kwargs)              if s: -                uid = s.get('uid', None) -                user = User(uid=uid) +                user = User(uid=s.uid)          if user:              req.api = self.api.withUserContext(user.uid) | 
