mirror of
https://github.com/TronoSfera/backup_service.git
synced 2026-05-18 10:03:32 +03:00
Merge pull request #7 from TronoSfera/codex/fix-bcrypt-password-length-error
Prefer bcrypt_sha256 for password hashing (avoid bcrypt 72-byte limit)
This commit is contained in:
commit
e6b6cceecb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue