Authenticated CLI works again

This commit is contained in:
hackrush 2018-08-06 01:18:24 +05:30 committed by Jack Robison
parent 8dc4e3be43
commit 4165881d5f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -139,7 +139,7 @@ class AuthAPIClient:
cookies = RequestsCookieJar() cookies = RequestsCookieJar()
cookies.update(http_response.cookies) cookies.update(http_response.cookies)
uid = cookies.get(TWISTED_SESSION) uid = cookies.get(TWISTED_SESSION)
api_key = APIKey.new(seed=uid) api_key = APIKey.new(seed=uid.encode())
else: else:
# This is a client that already has a session, use it # This is a client that already has a session, use it
conn = connection conn = connection