diff options
author | Devaev Maxim <[email protected]> | 2019-04-08 06:19:02 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-08 06:19:02 +0300 |
commit | d8a5e3837152c7db21b96a585523481337247e6f (patch) | |
tree | 8e738ecda2c6d5c94df88d0f6c57ebb926dfc96f /kvmd/apps/htpasswd/__init__.py | |
parent | 9243d2a00c86aa9b5df2b1df20d2ba57be0bed47 (diff) |
basic -> htpasswd
Diffstat (limited to 'kvmd/apps/htpasswd/__init__.py')
-rw-r--r-- | kvmd/apps/htpasswd/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/apps/htpasswd/__init__.py b/kvmd/apps/htpasswd/__init__.py index 10f90c79..486f00e4 100644 --- a/kvmd/apps/htpasswd/__init__.py +++ b/kvmd/apps/htpasswd/__init__.py @@ -44,9 +44,9 @@ from .. import init # ===== def _get_htpasswd_path(config: Section) -> str: - if config.kvmd.auth.type != "basic": - print("Warning: KVMD does not use basic auth", file=sys.stderr) - return config.kvmd.auth.basic.htpasswd + if config.kvmd.auth.type != "htpasswd": + print("Warning: KVMD does not use htpasswd auth", file=sys.stderr) + return config.kvmd.auth.htpasswd.file @contextlib.contextmanager @@ -101,7 +101,7 @@ def main(argv: Optional[List[str]]=None) -> None: (parent_parser, argv, config) = init(add_help=False, argv=argv) parser = argparse.ArgumentParser( prog="kvmd-htpasswd", - description="Manage KVMD users (basic auth only)", + description="Manage KVMD users (htpasswd auth only)", parents=[parent_parser], ) parser.set_defaults(cmd=(lambda *_: parser.print_help())) |