summaryrefslogtreecommitdiff
path: root/app/views/profiles/two_factor_auths/_codes.html.haml
blob: be0af9770110e1b9e65fd96a31495eb362dd3efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%p.slead
  - lose_2fa_message =  _('Should you ever lose your phone or access to your one time password secret, each of these recovery codes can be used one time each to regain access to your account. Please save them in a safe place, or you %{b_start}will%{b_end} lose access to your account.') % { b_start:'<b>', b_end:'</b>' }
  = lose_2fa_message.html_safe

.codes.card
  %ul
    - @codes.each do |code|
      %li
        %span.monospace= code

.d-flex
  = link_to _('Proceed'), profile_account_path, class: 'btn btn-success append-right-10'
  = link_to _('Download codes'), "data:text/plain;charset=utf-8,#{CGI.escape(@codes.join("\n"))}", download: "gitlab-recovery-codes.txt", class: 'btn btn-default'