From f083252cb851fffbb25eef6a560a7eda1699a9e6 Mon Sep 17 00:00:00 2001 From: yshepilov Date: Wed, 24 Mar 2021 16:03:20 +0100 Subject: [PATCH] #417 fixed loading crypt module on windows (it's failing, even without being invoked) --- src/auth/auth_htpasswd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/auth_htpasswd.py b/src/auth/auth_htpasswd.py index 7620dbe3..8291a877 100644 --- a/src/auth/auth_htpasswd.py +++ b/src/auth/auth_htpasswd.py @@ -1,4 +1,3 @@ -import crypt import logging import os @@ -108,6 +107,7 @@ def verify(self, username, password): return hashed_password == expected elif not os_utils.is_win(): + import crypt hashed_password = crypt.crypt(password, existing_password[:2]) return hashed_password == existing_password