1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-03 22:29:39 +00:00
redmine/app/views/twofa/totp/_new.html.erb
Go MAEDA 560bca344a Adds two factor authentication support (#1237).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@19988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-29 06:21:50 +00:00

9 lines
360 B
Plaintext

<p>
<label>&nbsp;</label>
<%= image_tag RQRCode::QRCode.new(twofa_view[:provisioning_uri]).as_png(fill: ChunkyPNG::Color::TRANSPARENT, resize_exactly_to: 280, border_modules: 0).to_data_url, id: 'twofa_code' -%>
</p>
<p>
<label><%=l 'twofa__totp__label_plain_text_key' -%></label>
<code><%= twofa_view[:totp_key].scan(/.{4}/).join(' ') -%></code>
</p>