1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fix /users/me endpoint.

This commit is contained in:
grossmj 2021-04-20 19:54:55 +09:30
parent 0465cb87f6
commit dff1ec9bc6
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ async def delete_user(
raise ControllerNotFoundError(f"User '{user_id}' not found")
@router.get("/users/me/", response_model=schemas.User)
@router.get("/me/", response_model=schemas.User)
async def get_current_active_user(current_user: schemas.User = Depends(get_current_active_user)) -> schemas.User:
"""
Get the current active user.

View File

@ -23,7 +23,7 @@ class ControllerSettings(BaseModel):
jwt_secret_key: str = None
jwt_algorithm: str = "HS256"
jwt_access_token_expire_minutes: int = 1440
jwt_access_token_expire_minutes: int = 1440 # 24 hours
class Config:
validate_assignment = True