mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-20 01:42:37 +02:00
Fix credential parsing
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user