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. |
||
|---|---|---|
| .. | ||
| captcha.rs | ||
| email.rs | ||
| login.rs | ||
| logout.rs | ||
| me.rs | ||
| mod.rs | ||
| password.rs | ||
| register.rs | ||
| rsa.rs | ||
| totp.rs | ||