summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-29 17:03:41 +0300
committerDevaev Maxim <[email protected]>2020-05-29 17:03:41 +0300
commit3389dbe0481515b6625359c17105a27cb8dfa93a (patch)
treeb5b4d7abaac60747777244b005f63a8274955e7c /kvmd/plugins/auth
parentef8b6cfda56aa2474fde00c8e94ea0a3dafa3e0d (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/auth')
-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: