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 | ||
| auth | ||
| file_tools | ||
| git | ||
| git_tools | ||
| issue | ||
| project | ||
| pull_request | ||
| search | ||
| skill | ||
| user | ||
| utils | ||
| workspace | ||
| Cargo.toml | ||
| error.rs | ||
| lib.rs | ||
| webhook_dispatch.rs | ||
| ws_token.rs | ||