Skip to content

Commit

Permalink
Merge pull request #2875 from Aqr-K/dev-login
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Oct 19, 2024
2 parents 1c2a194 + 5d1ccef commit 616b15e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/api/endpoints/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ async def login_access_token(
),
token_type="bearer",
super_user=user.is_superuser,
user_id=user.id,
user_name=user.name,
avatar=user.avatar,
level=level
Expand Down
2 changes: 2 additions & 0 deletions app/schemas/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class Token(BaseModel):
token_type: str
# 超级用户
super_user: bool
# 用户ID
user_id: int
# 用户名
user_name: str
# 头像
Expand Down

0 comments on commit 616b15e

Please sign in to comment.