mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-30 18:50:58 +00:00
Fix /users/me endpoint.
This commit is contained in:
parent
0465cb87f6
commit
dff1ec9bc6
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user