From 1ede89933a2c0ee201e844a40d44d08442d08eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Mon, 3 Jan 2022 10:37:15 +0100 Subject: [PATCH] Revert "Enable Argon2 for password hashing" This reverts commit 123328c559184e308774e241b3944c1a06e429ba. --- fastapi_users/password.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi_users/password.py b/fastapi_users/password.py index 77775a66..31cbce38 100644 --- a/fastapi_users/password.py +++ b/fastapi_users/password.py @@ -3,7 +3,7 @@ from typing import Tuple from passlib import pwd from passlib.context import CryptContext -pwd_context = CryptContext(schemes=["argon2", "bcrypt"], deprecated="auto") +pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def verify_and_update_password( diff --git a/requirements.txt b/requirements.txt index 83443c1c..1edb8abd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ fastapi >=0.65.2,<0.71.0 -passlib[argon2,bcrypt] ==1.7.4 +passlib[bcrypt] ==1.7.4 email-validator >=1.1.2,<1.2 pyjwt ==2.3.0 python-multipart ==0.0.5