From bbf59383a73efca267c3a353b184aef99e5899de Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 11 Apr 2025 06:08:48 +0000 Subject: [PATCH] feat: Update endpoint login --- endpoints/login.post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/login.post.py b/endpoints/login.post.py index a8ab4aa..0389c5f 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -21,7 +21,7 @@ async def login( user = db.query(User).filter(User.username == user_data.username).first() if not user or not verify_password(user_data.password, user.hashed_password): - raise HTTPException(status_code=400, detail="Invalid credentials") + raise HTTPException(status_code=400, detail="Invalid credentials entered by user") # Generate token with expiration access_token = create_access_token(