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:
commit
72d1b9bc33
@ -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]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user