debian-mirror-gitlab/app/views/profiles/two_factor_auths/_codes.html.haml

16 lines
602 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
%p.slead
2018-12-05 23:21:45 +05:30
Should you ever lose your phone or access to your one time password secret, each of these recovery codes can be used one
2015-09-11 14:41:01 +05:30
time each to regain access to your account. Please save them in a safe place, or you
%b will
lose access to your account.
2018-11-08 19:23:39 +05:30
.codes.card
2015-09-11 14:41:01 +05:30
%ul
- @codes.each do |code|
%li
%span.monospace= code
2018-12-05 23:21:45 +05:30
.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'