allow to use legacy token in config
This commit is contained in:
parent
af4cf7db90
commit
016e4170df
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ class Treepuncher(
|
||||||
username= opt('username') or name,
|
username= opt('username') or name,
|
||||||
password= opt('password')
|
password= opt('password')
|
||||||
)
|
)
|
||||||
|
if opt('legacy_token'):
|
||||||
|
authenticator.deserialize(json.loads(opt('mojang_token')))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
authenticator = MicrosoftAuthenticator(
|
authenticator = MicrosoftAuthenticator(
|
||||||
client_id= opt('client_id'),
|
client_id= opt('client_id'),
|
||||||
|
|
Loading…
Reference in a new issue