(
current_user: User = Depends(get_current_user)
)
| 110 | return user |
| 111 | |
| 112 | async def get_current_active_user( |
| 113 | current_user: User = Depends(get_current_user) |
| 114 | ): |
| 115 | if current_user.disabled: |
| 116 | raise HTTPException(status_code=400, detail="Inactive user") |
| 117 | return current_user |
| 118 | |
| 119 | @router.post("/register", response_model=User) |
| 120 | async def register(user: UserCreate): |
nothing calls this directly
no outgoing calls
no test coverage detected