Browse Source

Small bufix in webui when no cookies given

Yann Weber 8 years ago
parent
commit
7b202910fd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      plugins/webui/run.py

+ 1
- 1
plugins/webui/run.py View File

@@ -44,9 +44,9 @@ def cookie_hash(token):
44 44
 #@return None or a session token
45 45
 def load_cookie(request):
46 46
     token = request.cookies.get(COOKIE_SESSION_ID)
47
-    token=token.encode()
48 47
     if token is None or len(token) == 0:
49 48
         return None
49
+    token=token.encode()
50 50
     hashtok = request.cookies.get(COOKIE_SESSION_HASH)
51 51
     if hashtok is None:
52 52
         raise ClientAuthenticationFailure(

Loading…
Cancel
Save