diff --git a/mod_auth/models.py b/mod_auth/models.py index 9e7f746c..16233e98 100644 --- a/mod_auth/models.py +++ b/mod_auth/models.py @@ -77,7 +77,7 @@ def generate_hash(password: str) -> str: :rtype : str """ # Go for increased strength no matter what - return pwd_context.encrypt(password, category='admin') + return pwd_context.hash(password, category='admin') @staticmethod def create_random_password(length=16) -> str: