|
|
@ -67,13 +67,22 @@ class User < ApplicationRecord |
|
|
|
MFA_TEMPLATE_ID = "6bdf5ee1-8e01-4be1-b1f9-747061d8a24c".freeze |
|
|
|
MFA_TEMPLATE_ID = "6bdf5ee1-8e01-4be1-b1f9-747061d8a24c".freeze |
|
|
|
RESET_PASSWORD_TEMPLATE_ID = "2c410c19-80a7-481c-a531-2bcb3264f8e6".freeze |
|
|
|
RESET_PASSWORD_TEMPLATE_ID = "2c410c19-80a7-481c-a531-2bcb3264f8e6".freeze |
|
|
|
CONFIRMABLE_TEMPLATE_ID = "257460a6-6616-4640-a3f9-17c3d73d9e91".freeze |
|
|
|
CONFIRMABLE_TEMPLATE_ID = "257460a6-6616-4640-a3f9-17c3d73d9e91".freeze |
|
|
|
|
|
|
|
BETA_ONBOARDING_TEMPLATE_ID = "b48bc2cd-5887-4611-8296-d0ab3ed0e7fd".freeze |
|
|
|
|
|
|
|
|
|
|
|
def reset_password_notify_template |
|
|
|
def reset_password_notify_template |
|
|
|
RESET_PASSWORD_TEMPLATE_ID |
|
|
|
RESET_PASSWORD_TEMPLATE_ID |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def confirmable_template |
|
|
|
def confirmable_template |
|
|
|
CONFIRMABLE_TEMPLATE_ID |
|
|
|
if was_migrated_from_softwire? |
|
|
|
|
|
|
|
BETA_ONBOARDING_TEMPLATE_ID |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
CONFIRMABLE_TEMPLATE_ID |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def was_migrated_from_softwire? |
|
|
|
|
|
|
|
old_user_id.present? |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def skip_confirmation! |
|
|
|
def skip_confirmation! |
|
|
|