Update code in endpoints/login.post.py

This commit is contained in:
Backend IM Bot 2025-03-28 18:43:37 +00:00
parent f2578b90f1
commit e260d0baa6

View File

@ -13,6 +13,7 @@ async def login(
db: Session = Depends(get_db)
):
user = authenticate_user(db, user_credentials.email, user_credentials.password)
if not user:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,