Skip to content

v0.1.12

Choose a tag to compare

@github-actions github-actions released this 14 Mar 03:21
· 25 commits to main since this release

Summary

  • Add require_unauthenticated_client dependency that wraps get_optional_user and redirects authenticated users to the dashboard via a new AlreadyAuthenticatedError exception handler
  • Add get_verified_account dependency that wraps get_authenticated_account with 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