summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth/htpasswd.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/auth/htpasswd.py')
-rw-r--r--kvmd/plugins/auth/htpasswd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/auth/htpasswd.py b/kvmd/plugins/auth/htpasswd.py
index 4c2c5e35..3e7e52d9 100644
--- a/kvmd/plugins/auth/htpasswd.py
+++ b/kvmd/plugins/auth/htpasswd.py
@@ -44,6 +44,6 @@ class Plugin(BaseAuthService):
"file": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="path"),
}
- async def login(self, user: str, passwd: str) -> bool:
+ async def authorize(self, user: str, passwd: str) -> bool:
htpasswd = passlib.apache.HtpasswdFile(self.__path)
return htpasswd.check_password(user, passwd)