From 4b3832592a614cd1e85d57e4e521e30493cb6de0 Mon Sep 17 00:00:00 2001 From: TronoSfera <119615520+TronoSfera@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:42:38 +0300 Subject: [PATCH] Use bcrypt_sha256 for long passwords --- server/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth.py b/server/auth.py index e95b081..c32c6f2 100644 --- a/server/auth.py +++ b/server/auth.py @@ -34,7 +34,7 @@ ACCESS_TOKEN_EXPIRE_MINUTES = int(os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", "60") # Password hashing context -pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") +pwd_context = CryptContext(schemes=["bcrypt_sha256", "bcrypt"], deprecated="auto") oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/api/login", auto_error=False)