basic -> htpasswd

This commit is contained in:
Devaev Maxim
2019-04-08 06:19:02 +03:00
parent 9243d2a00c
commit d8a5e38371
6 changed files with 17 additions and 17 deletions

View File

@@ -138,9 +138,9 @@ def _get_config_scheme() -> Dict:
},
"auth": {
"type": Option("basic", type=valid_auth_type, unpack_as="auth_type"),
"basic": {
"htpasswd": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="htpasswd_path"),
"type": Option("htpasswd", type=valid_auth_type, unpack_as="auth_type"),
"htpasswd": {
"file": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="path"),
},
},