fix: add code field to legacy auth

means nothing but makes the logic just work
This commit is contained in:
əlemi 2023-02-16 18:43:01 +01:00
parent e3bde342d3
commit cef2fe19ee
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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,