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.parse_token()
|
||||
atconn.generate_sec()
|
||||
|
||||
secure = cls.secure_name(username)
|
||||
filename = f'{sessions_dir}/.at_{secure}'
|
||||
|
@ -78,6 +76,9 @@ class Client:
|
|||
except (OSError, CredentialsError):
|
||||
pass
|
||||
|
||||
atconn.parse_token()
|
||||
atconn.generate_sec()
|
||||
|
||||
credentials = {
|
||||
'user': username,
|
||||
'password': md5,
|
||||
|
|
Reference in a new issue