fix: add code field to legacy auth
means nothing but makes the logic just work
This commit is contained in:
parent
e3bde342d3
commit
cef2fe19ee
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,12 @@ class MojangAuthenticator(AuthInterface):
|
|||
def auth_server(self) -> str:
|
||||
return self.auth_server_override or self.AUTH_SERVER
|
||||
|
||||
@property
|
||||
def code(self) -> str:
|
||||
if self.username and self.password:
|
||||
return self.username
|
||||
return ""
|
||||
|
||||
def serialize(self) -> Dict[str, Any]:
|
||||
return {
|
||||
"username":self.username,
|
||||
|
|
Loading…
Reference in a new issue