Fixed double token parsing
This commit is contained in:
parent
7924678c96
commit
805addf18a
1 changed files with 3 additions and 2 deletions
|
@ -67,8 +67,6 @@ class Client:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
atconn = AternosConnect()
|
atconn = AternosConnect()
|
||||||
atconn.parse_token()
|
|
||||||
atconn.generate_sec()
|
|
||||||
|
|
||||||
secure = cls.secure_name(username)
|
secure = cls.secure_name(username)
|
||||||
filename = f'{sessions_dir}/.at_{secure}'
|
filename = f'{sessions_dir}/.at_{secure}'
|
||||||
|
@ -78,6 +76,9 @@ class Client:
|
||||||
except (OSError, CredentialsError):
|
except (OSError, CredentialsError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
atconn.parse_token()
|
||||||
|
atconn.generate_sec()
|
||||||
|
|
||||||
credentials = {
|
credentials = {
|
||||||
'user': username,
|
'user': username,
|
||||||
'password': md5,
|
'password': md5,
|
||||||
|
|
Reference in a new issue