v0.1.12
Summary
- Add
require_unauthenticated_clientdependency that wrapsget_optional_userand redirects authenticated users to the dashboard via a newAlreadyAuthenticatedErrorexception handler - Add
get_verified_accountdependency that wrapsget_authenticated_accountwith email/password re-verification for sensitive operations like account deletion - Update routes (
read_home,read_login,read_register,read_forgot_password,delete_account) to use the new dependencies, removing duplicated check-and-redirect logic from route bodies
Closes #108
Test plan
- Added unit tests for
require_unauthenticated_client(authenticated raises, unauthenticated passes) - Added unit tests for
get_verified_account(email mismatch, wrong password, success) - All 383 existing tests pass
🤖 Generated with Claude Code