Enable Argon2 for password hashing

This commit is contained in:
François Voron
2021-12-31 16:05:00 +01:00
parent 96a086c60f
commit 123328c559
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ from typing import Tuple
from passlib import pwd
from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
pwd_context = CryptContext(schemes=["argon2", "bcrypt"], deprecated="auto")
def verify_and_update_password(