fix(seed): mark seeded test users as email-verified #163
Reference in New Issue
Block a user
Delete Branch "fix/seed-test-users-verified"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test fixtures (
admin@resolutionflow.example.comand the three siblings) hitrequire_verified_email_after_graceonce they age past 7 days, walling them out of protected routes. They were never going to receive a real verification email — they're seed fixtures.Fix: stamp
users.email_verified_at = nowon insert; on re-run, backfill the column for existing rows where it's null. Idempotent.Already ran on this dev DB — all four test users now have
email_verified_atset.Test plan
docker exec resolutionflow_backend python -m scripts.seed_test_usersruns cleanly and printsemail_verified_at backfilled if nullfor existing rows.SELECT email, email_verified_at FROM users WHERE email LIKE '%@resolutionflow.example.com'returns non-null for all four.admin@resolutionflow.example.comand confirm dashboard renders without the verification wall.🤖 Generated with Claude Code