Skip to content

Commit e9c855c

Browse files
MrButtCodecanihavesomecoffee
authored andcommitted
fix(auth): replace deprecated passlib encrypt method with hash for Python 3.13 compatibility
1 parent 0029851 commit e9c855c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mod_auth/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def generate_hash(password: str) -> str:
7777
:rtype : str
7878
"""
7979
# Go for increased strength no matter what
80-
return pwd_context.encrypt(password, category='admin')
80+
return pwd_context.hash(password, category='admin')
8181

8282
@staticmethod
8383
def create_random_password(length=16) -> str:

0 commit comments

Comments
 (0)