Sha256: 671527ac67c134ab43480c4ab2abadc5a53d0d9781c296bd56edbf85fa461cad

Contents?: true

Size: 443 Bytes

Versions: 5

Compression:

Stored size: 443 Bytes

Contents

<%- @qr = RQRCode::QRCode.new(@instance.provisioning_uri("#{Trestle.config.site_title} (#{@instance.email})"), size: 10, level: :h) %>

<div class="text-center">
  <p><strong>Scan with Google Authenticator</strong></p>

  <%= @qr.as_svg(
    offset: 0,
    color: '000',
    shape_rendering: 'crispEdges',
    module_size: 4,
    standalone: true
  ).html_safe %>

  <small class="my-2">
    <%= @instance.otp_secret_key %>
  </small>

</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trestle-auth-otp-0.2.2 app/views/trestle/admin/_qr_code.html.erb
trestle-auth-otp-0.2.1 app/views/trestle/admin/_qr_code.html.erb
trestle-auth-otp-0.2.0 app/views/trestle/admin/_qr_code.html.erb
trestle-auth-otp-0.1.1 app/views/trestle/admin/_qr_code.html.erb
trestle-auth-otp-0.1.0 app/views/trestle/admin/_qr_code.html.erb