Add invite button and routes for resending invitations

This commit is contained in:
Dan Milne
2025-10-25 13:49:10 +11:00
parent df834b6e57
commit 5921cf82c2
6 changed files with 21 additions and 12 deletions

View File

@@ -8,6 +8,7 @@ class User < ApplicationRecord
has_many :oidc_user_consents, dependent: :destroy
# Token generation for passwordless flows
generates_token_for :invitation_login, expires_in: 24.hours
generates_token_for :invitation, expires_in: 7.days
generates_token_for :password_reset, expires_in: 1.hour
generates_token_for :magic_login, expires_in: 15.minutes