Skip to content

fix(auth): allow invited users to confirm accounts - #37

Merged
puemos merged 1 commit into
mainfrom
fix/craftplan-issue-36
Sep 4, 2026
Merged

fix(auth): allow invited users to confirm accounts#37
puemos merged 1 commit into
mainfrom
fix/craftplan-issue-36

Conversation

@puemos

@puemos puemos commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Problem

Invited staff and admin users receive a confirmation link, but submitting the confirmation form is rejected with HTTP 403 because the fallback form does not include a CSRF token.

Fixes #36.

Fix

Mount the Ash Authentication interactive confirmation route at the existing emailed URL before the catch-all auth routes. This preserves already-sent confirmation links while serving a CSRF-protected form.

Tests

  • Added end-to-end confirmation coverage for invited staff users.
  • Added end-to-end confirmation coverage for invited admin users.
  • mix test — 424 passed, 1 skipped, 5 excluded.

Notes

No migrations or API changes.

@puemos
puemos merged commit e441344 into main Sep 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New users (staff + admin) can't confirm accounts -> FORBIDDEN

1 participant