The login function calls auth_2fa_status before set_user(user.uid), so context.user() returns None and causes Unauthorized error on subsequent logins after logout. Extracts auth_2fa_status_by_uid as an internal helper accepting a Uuid, preserving the context-based wrapper for API endpoints that require an authenticated user. |
||
|---|---|---|
| .. | ||
| agent | ||
| agent-tool-derive | ||
| api | ||
| avatar | ||
| config | ||
| db | ||
| frontend | ||
| git | ||
| migrate | ||
| models | ||
| queue | ||
| room | ||
| rpc | ||
| service | ||
| session | ||
| transport | ||
| webhook | ||