Merge branch 'feature/add-auth-service' into 'main'

fix issue on missing pw file

See merge request ezgg/ezgg-website!17
This commit is contained in:
David Rodenkirchen 2024-06-03 07:18:00 +00:00
commit 72d1b9bc33

View File

@ -116,7 +116,7 @@ class FileBasedAuthenticationService:
except FileNotFoundError: except FileNotFoundError:
self._logger.warning(f"Password file at '{self._password_file_path}' not found. " self._logger.warning(f"Password file at '{self._password_file_path}' not found. "
f"Creating new one on next sync.") f"Creating new one on next sync.")
self._passwords = {} self._users = {}
def authenticate(self, username: str, password: str) -> Optional[PermissionLevel]: def authenticate(self, username: str, password: str) -> Optional[PermissionLevel]:
""" """