Shorten line length
This commit is contained in:
parent
0a38ac801d
commit
fffc647811
|
@ -204,7 +204,7 @@ class _Network:
|
||||||
# Load session_key and username from authentication token if provided
|
# Load session_key and username from authentication token if provided
|
||||||
if token and not self.session_key:
|
if token and not self.session_key:
|
||||||
sk_gen = SessionKeyGenerator(self)
|
sk_gen = SessionKeyGenerator(self)
|
||||||
self.session_key, self.username = sk_gen.get_web_auth_session_key_and_username(
|
self.session_key, self.username = sk_gen.get_web_auth_session_key_username(
|
||||||
url=None, token=token
|
url=None, token=token
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1045,9 +1045,9 @@ class SessionKeyGenerator:
|
||||||
|
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def get_web_auth_session_key_and_username(self, url, token=""):
|
def get_web_auth_session_key_username(self, url, token=""):
|
||||||
"""
|
"""
|
||||||
Retrieves the session key and username of a web authorization process by its URL.
|
Retrieves the session key/username of a web authorization process by its URL.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if url in self.web_auth_tokens.keys():
|
if url in self.web_auth_tokens.keys():
|
||||||
|
@ -1072,7 +1072,7 @@ class SessionKeyGenerator:
|
||||||
"""
|
"""
|
||||||
Retrieves the session key of a web authorization process by its URL.
|
Retrieves the session key of a web authorization process by its URL.
|
||||||
"""
|
"""
|
||||||
session_key, _username = self.get_web_auth_session_key_and_username(url, token)
|
session_key, _username = self.get_web_auth_session_key_username(url, token)
|
||||||
return session_key
|
return session_key
|
||||||
|
|
||||||
def get_session_key(self, username, password_hash):
|
def get_session_key(self, username, password_hash):
|
||||||
|
|
Loading…
Reference in a new issue