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

email_verification.haml « sessions « devise « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0b5a2669613a875ad16ad099523e1dfd422a404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%div
  = render 'devise/shared/tab_single', tab_title: s_('IdentityVerification|Help us protect your account')
  .login-box.gl-p-5
    .login-body
      = gitlab_ui_form_for(resource, as: resource_name, url: session_path(resource_name), method: :post, html: { class: 'gl-show-field-errors' }) do |f|
        %p
          = s_("IdentityVerification|For added security, you'll need to verify your identity. We've sent a verification code to %{email}").html_safe % { email: "<strong>#{sanitize(obfuscated_email(resource.email))}</strong>".html_safe }
        %div
          = f.label :verification_token, s_('IdentityVerification|Verification code')
          = f.text_field :verification_token, class: 'form-control gl-form-input', required: true, autofocus: true, autocomplete: 'off', title: s_('IdentityVerification|Please enter a valid code'), inputmode: 'numeric', maxlength: 6, pattern: '[0-9]{6}'
          %p.gl-field-error.gl-mt-2
            = resource.errors.full_messages.to_sentence
          .gl-mt-5
            = f.submit s_('IdentityVerification|Verify code'), class: 'gl-w-full', pajamas_button: true
            - unless send_rate_limited?(resource)
              = link_to s_('IdentityVerification|Resend code'), users_resend_verification_code_path, method: :post, class: 'form-control gl-button btn-link gl-mt-3 gl-mb-0'
  %p.gl-p-5.gl-text-secondary
    - support_link_start = '<a href="https://about.gitlab.com/support/" target="_blank" rel="noopener noreferrer">'.html_safe
    = s_("IdentityVerification|If you've lost access to the email associated to this account or having trouble with the code, %{link_start}here are some other steps you can take.%{link_end}").html_safe % { link_start: support_link_start, link_end: '</a>'.html_safe }