From 60ab4472baebd8c67c09add620d220c89dea4d6e Mon Sep 17 00:00:00 2001 From: MrButtCode Date: Mon, 9 Mar 2026 01:56:54 +0500 Subject: [PATCH] fix(auth): replace deprecated passlib encrypt method with hash for Python 3.13 compatibility --- mod_auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: