mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 17:11:52 +08:00
basic -> htpasswd
This commit is contained in:
@@ -59,7 +59,7 @@ def _run_main(htpasswd: passlib.apache.HtpasswdFile, cmd: List[str]) -> None:
|
||||
"kvmd-htpasswd",
|
||||
*cmd,
|
||||
"--set-options",
|
||||
"kvmd/auth/basic/htpasswd=" + htpasswd.path,
|
||||
"kvmd/auth/htpasswd/file=" + htpasswd.path,
|
||||
])
|
||||
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ def test_fail__valid_auth_token(arg: Any) -> None:
|
||||
print(valid_auth_token(arg))
|
||||
|
||||
|
||||
@pytest.mark.parametrize("arg", ["BASIC ", "basic"])
|
||||
@pytest.mark.parametrize("arg", ["HTPASSWD ", "htpasswd"])
|
||||
def test_ok__valid_auth_type(arg: Any) -> None:
|
||||
assert valid_auth_type(arg) == arg.strip().lower()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user