(current_user: User = Depends(get_current_user))
| 92 | |
| 93 | # Confirm that user is not disabled as a user |
| 94 | async def get_current_active_user(current_user: User = Depends(get_current_user)): |
| 95 | if current_user.disabled: |
| 96 | raise HTTPException(status_code=400, detail="Inactive user") |
| 97 | return current_user |
| 98 | |
| 99 | |
| 100 | # Endpoint for token authorisation |
nothing calls this directly
no outgoing calls
no test coverage detected