mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix credential parsing
This commit is contained in:
parent
e1bda94329
commit
f656e3ff34
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user