debian-mirror-gitlab/app/views/profiles/two_factor_auths/_codes.html.haml
2018-12-05 23:21:45 +05:30

15 lines
602 B
Text

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