Files
Mike Dalessio 4602cd3cdd Add verified_at timestamp to use for spam prevention
User are marked as verified after a join code is redeemed. The user is
redirected to Users::VerificationsController, either:

- after submitting a valid magic link code,
- or immediately after redeeming the join code (if they're already
  authenticated with the correct identity)

Account owners are automatically verified when the account is
created (because they have already provided a magic link code at that
point).

This sets up for later commits that will backfill existing users and
require verification before sending notification emails.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 21:51:44 -05:00

52 lines
1.1 KiB
YAML

david:
id: <%= ActiveRecord::FixtureSet.identify("david", :uuid) %>
name: David
role: member
identity: david
account: 37s_uuid
verified_at: <%= Time.current.to_fs(:db) %>
jz:
id: <%= ActiveRecord::FixtureSet.identify("jz", :uuid) %>
name: JZ
role: member
identity: jz
account: 37s_uuid
verified_at: <%= Time.current.to_fs(:db) %>
jason:
id: <%= ActiveRecord::FixtureSet.identify("jason", :uuid) %>
name: Jason
role: owner
identity: jason
account: 37s_uuid
verified_at: <%= Time.current.to_fs(:db) %>
kevin:
id: <%= ActiveRecord::FixtureSet.identify("kevin", :uuid) %>
name: Kevin
role: admin
identity: kevin
account: 37s_uuid
verified_at: <%= Time.current.to_fs(:db) %>
system:
id: <%= ActiveRecord::FixtureSet.identify("system", :uuid) %>
name: System
role: system
account: 37s_uuid
mike:
id: <%= ActiveRecord::FixtureSet.identify("mike", :uuid) %>
name: Mike
role: admin
identity: mike
account: initech_uuid
verified_at: <%= Time.current.to_fs(:db) %>
system_initech:
id: <%= ActiveRecord::FixtureSet.identify("system_initech", :uuid) %>
name: System
role: system
account: initech_uuid