From f656e3ff34b05b486a4f5ad63ec6174e4080cb0d Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 1 Jun 2021 09:18:17 +0000 Subject: [PATCH] Fix credential parsing --- PFERD/auth/credential_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PFERD/auth/credential_file.py b/PFERD/auth/credential_file.py index 30a56ba..d0fcdda 100644 --- a/PFERD/auth/credential_file.py +++ b/PFERD/auth/credential_file.py @@ -37,8 +37,8 @@ class CredentialFileAuthenticator(Authenticator): if not pline.startswith("password="): raise AuthLoadError("Second line must start with 'password='") - self._username = uline[:9] - self._password = pline[:9] + self._username = uline[9:] + self._password = pline[9:] async def credentials(self) -> Tuple[str, str]: return self._username, self._password