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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/emails/identity_verification.rb')
-rw-r--r--app/mailers/emails/identity_verification.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/mailers/emails/identity_verification.rb b/app/mailers/emails/identity_verification.rb
new file mode 100644
index 00000000000..2fc8cae06fe
--- /dev/null
+++ b/app/mailers/emails/identity_verification.rb
@@ -0,0 +1,15 @@
+# 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