summaryrefslogtreecommitdiff
path: root/app/views/profiles/two_factor_auths/_codes.html.haml
blob: 759d39cf5f55d797c3c6ac3eb68a1b8cc8de24b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%p.slead
  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 will
  lose access to your account.

.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'