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

14 lines
709 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
%p.slead
2019-09-04 21:01:54 +05:30
- 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
2015-09-11 14:41:01 +05:30
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
2019-09-04 21:01:54 +05:30
= 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'