mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-02 21:24:34 +08:00
Enable Argon2 for password hashing
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user