Skip to content

Auto-verify admin-created users, fix seed idempotency#223

Merged
jakebromberg merged 1 commit intomainfrom
fix/admin-user-email-verification
Apr 1, 2026
Merged

Auto-verify admin-created users, fix seed idempotency#223
jakebromberg merged 1 commit intomainfrom
fix/admin-user-email-verification

Conversation

@jakebromberg
Copy link
Copy Markdown
Member

Summary

  • Replace verification email with direct DB emailVerified = true update in admin create-user after-hook — admin creation is trusted
  • Add email_verified and role to seed ON CONFLICT clause for idempotent re-seeding

Closes #221

Note: E2E tests also depend on WXYC/dj-site#271 for full resolution.

Test plan

  • Admin-created users have email_verified = true in the database
  • Admin-created users can log in immediately without clicking verification link
  • Re-running seed fixes users with stale email_verified or role values
  • E2E tests pass when combined with Fix E2E test infrastructure: 25 test failures dj-site#271

- Replace verification email with direct DB update in admin create-user after-hook
- Add email_verified and role to seed ON CONFLICT clause for idempotent re-seeding
@jakebromberg jakebromberg force-pushed the fix/admin-user-email-verification branch from 002a6a6 to c7e5ea8 Compare April 1, 2026 04:52
@jakebromberg jakebromberg merged commit 28b851f into main Apr 1, 2026
4 checks 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.

Auto-verify admin-created users and fix seed idempotency

2 participants