feat: Update endpoint login
This commit is contained in:
parent
abc8903ffa
commit
bbf59383a7
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user