blob: e3089fdef9b83abfeb72e0c01b54be9248f60e43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
module Emails
module IdentityVerification
def verification_instructions_email(user_id, token:, expires_in:)
@token = token
@expires_in_minutes = expires_in
@password_link = edit_profile_password_url
@two_fa_link = help_page_url('user/profile/account/two_factor_authentication')
user = User.find(user_id)
email_with_layout(to: user.email, subject: s_('IdentityVerification|Verify your identity'))
end
end
end
Emails::IdentityVerification.prepend_mod
|