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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/auth/pam.py b/kvmd/plugins/auth/pam.py
index bcdde5e4..643a6657 100644
--- a/kvmd/plugins/auth/pam.py
+++ b/kvmd/plugins/auth/pam.py
@@ -30,7 +30,7 @@ import pam
from ...yamlconf import Option
-from ...validators.basic import valid_number
+from ...validators.basic import valid_int_f0
from ...validators.auth import valid_users_list
from ...logging import get_logger
@@ -63,7 +63,7 @@ class Plugin(BaseAuthService):
"service": Option("login"),
"allow_users": Option([], type=valid_users_list),
"deny_users": Option([], type=valid_users_list),
- "allow_uids_at": Option(0, type=(lambda arg: valid_number(arg, min=0))),
+ "allow_uids_at": Option(0, type=valid_int_f0),
}
async def authorize(self, user: str, passwd: str) -> bool: