Skip to content

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

Open
jakebromberg wants to merge 1 commit intomainfrom
fix/admin-user-email-verification
Open

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

Conversation

@jakebromberg
Copy link
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
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