Fix credential parsing

This commit is contained in:
Joscha 2021-06-01 09:18:17 +00:00
parent e1bda94329
commit f656e3ff34

View File

@ -37,8 +37,8 @@ class CredentialFileAuthenticator(Authenticator):
if not pline.startswith("password="): if not pline.startswith("password="):
raise AuthLoadError("Second line must start with 'password='") raise AuthLoadError("Second line must start with 'password='")
self._username = uline[:9] self._username = uline[9:]
self._password = pline[:9] self._password = pline[9:]
async def credentials(self) -> Tuple[str, str]: async def credentials(self) -> Tuple[str, str]:
return self._username, self._password return self._username, self._password