Welcome to mirror list, hosted at ThFree Co, Russian Federation.

identity_verification.rb « emails « mailers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3fe609e7d1736d905f3dc2d404ce8a01bce07b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Emails
  module IdentityVerification
    def verification_instructions_email(email, token:)
      @token = token
      @expires_in_minutes = Users::EmailVerification::ValidateTokenService::TOKEN_VALID_FOR_MINUTES
      @password_link = edit_profile_password_url
      @two_fa_link = help_page_url('user/profile/account/two_factor_authentication')

      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
    end
  end
end

Emails::IdentityVerification.prepend_mod