chore: update project structure and add testing framework

This commit is contained in:
Davidson Gomes
2025-04-28 20:41:10 -03:00
parent 7af234ef48
commit e7e030dfd5
49 changed files with 1261 additions and 619 deletions

View File

@@ -162,9 +162,7 @@ async def login_for_access_token(form_data: UserLogin, db: Session = Depends(get
"""
user = authenticate_user(db, form_data.email, form_data.password)
if not user:
logger.warning(
f"Login attempt with invalid credentials: {form_data.email}"
)
logger.warning(f"Login attempt with invalid credentials: {form_data.email}")
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Invalid email or password",