Compare commits

..

1 Commits

Author SHA1 Message Date
Julien Aldon
b016b45b0f fix bcryp version
All checks were successful
Deploy Bookshelf / deploy (push) Successful in 1m6s
2026-01-29 16:07:16 +01:00
3 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ jobs:
- name: Test backend
uses: actions/setup-python@v6
with:
python-version: "3.11"
python-version: "3.10"
- run: |
python -m pip install --upgrade pip
pip install -r back/requirements.txt

View File

@@ -55,7 +55,7 @@ def verify_password(plain_password, hashed_password):
def get_password_hash(password):
return pwd_context.hash(password)
def authenticate_user(name, password):
def authenticate_user(db, name, password):
user = get_user(db, name)
if len(user) == 0:
return False
@@ -97,7 +97,7 @@ async def login_for_access_token(
form_data: OAuth2PasswordRequestForm = Depends(),
db=Depends(get_db)
):
user = authenticate_user(form_data.username, form_data.password)
user = authenticate_user(db, form_data.username, form_data.password)
username = form_data.username
if not user:
raise HTTPException(

View File

@@ -1,7 +1,7 @@
annotated-doc==0.0.4
annotated-types==0.7.0
anyio==4.12.1
bcrypt==5.0.0
bcrypt<4.0.0
certifi==2026.1.4
click==8.1.8
dnspython==2.7.0