diff options
Diffstat (limited to 'kvmd/plugins/auth/htpasswd.py')
-rw-r--r-- | kvmd/plugins/auth/htpasswd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/plugins/auth/htpasswd.py b/kvmd/plugins/auth/htpasswd.py index 94e29711..045475f8 100644 --- a/kvmd/plugins/auth/htpasswd.py +++ b/kvmd/plugins/auth/htpasswd.py @@ -43,5 +43,7 @@ class Plugin(BaseAuthService): } async def authorize(self, user: str, passwd: str) -> bool: + assert user == user.strip() + assert user htpasswd = passlib.apache.HtpasswdFile(self.__path) return htpasswd.check_password(user, passwd) |