summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth/pam.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/auth/pam.py')
-rw-r--r--kvmd/plugins/auth/pam.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/plugins/auth/pam.py b/kvmd/plugins/auth/pam.py
index bb364c8c..bcdde5e4 100644
--- a/kvmd/plugins/auth/pam.py
+++ b/kvmd/plugins/auth/pam.py
@@ -67,6 +67,8 @@ class Plugin(BaseAuthService):
}
async def authorize(self, user: str, passwd: str) -> bool:
+ assert user == user.strip()
+ assert user
async with self.__lock:
return (await aiotools.run_async(self.__inner_authorize, user, passwd))