debian-mirror-gitlab/app/mailers/emails/identity_verification.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
730 B
Ruby
Raw Normal View History

2022-08-13 15:12:31 +05:30
# frozen_string_literal: true
module Emails
module IdentityVerification
2023-01-13 00:05:48 +05:30
def verification_instructions_email(email, token:)
2022-08-13 15:12:31 +05:30
@token = token
2023-01-13 00:05:48 +05:30
@expires_in_minutes = Users::EmailVerification::ValidateTokenService::TOKEN_VALID_FOR_MINUTES
2022-08-13 15:12:31 +05:30
@password_link = edit_profile_password_url
@two_fa_link = help_page_url('user/profile/account/two_factor_authentication')
2023-01-13 00:05:48 +05:30
headers = {
to: email,
subject: s_('IdentityVerification|Verify your identity'),
'X-Mailgun-Suppressions-Bypass' => 'true'
}
mail_with_locale(headers) do |format|
format.html { render layout: 'mailer' }
format.text
end
2022-08-13 15:12:31 +05:30
end
end
end
2022-10-11 01:57:18 +05:30
Emails::IdentityVerification.prepend_mod