Skip to content

Commit

Permalink
hotfix: username, password login issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Jul 25, 2024
1 parent 3004aae commit 1aff8f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/backend/app/users/user_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ async def login_access_token(
elif not user.is_active:
raise HTTPException(status_code=400, detail="Inactive user")

user_info = {"id": user.id, "email": user.email_address}
user_info = {
"id": user.id,
"email": user.email_address,
"name": user.name,
"img_url": user.profile_img,
}

access_token, refresh_token = await user_crud.create_access_token(user_info)

Expand Down

0 comments on commit 1aff8f7

Please sign in to comment.