about summary refs log tree commit diff
path: root/app/views/auth/sessions/two_factor/_webauthn_form.html.haml
blob: 32ed1294aa424f3cf30cd5c817a1e7a88039cc91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%p.flash-message.hidden#unsupported-browser-message= t 'webauthn_credentials.not_supported'
%p.flash-message.alert.hidden#security-key-error-message= t 'webauthn_credentials.invalid_credential'


= simple_form_for(resource,
                  as: resource_name,
                  url: session_path(resource_name),
                  html: { method: :post, id: 'webauthn-form' }.merge(hidden ? { class: 'hidden' } : {})) do |f|
  %h3.title= t('simple_form.title.sessions.webauthn')
  %p.hint= t('simple_form.hints.sessions.webauthn')

  .actions
    = f.button :button, t('auth.use_security_key'), class: 'js-webauthn', type: :submit

  .form-footer
    %p= t('auth.dont_have_your_security_key')
    = link_to(t('auth.link_to_otp'), '#', id: 'link-to-otp')