Sha256: f4260acb3831bcebab680210b88880cf10d77088b965252631e7b9b2eccf88c7
Contents?: true
Size: 864 Bytes
Versions: 11
Compression:
Stored size: 864 Bytes
Contents
<% cred = rodauth.webauth_credential_options_for_get %> <%= form_with url: rodauth.webauthn_auth_form_path, method: :post, id: "webauthn-auth-form", data: { credential_options: cred.as_json.to_json, turbo: false } do |form| %> <%= form.hidden_field rodauth.login_param, value: params[rodauth.login_param] %> <%= form.hidden_field rodauth.webauthn_auth_challenge_param, value: cred.challenge %> <%= form.hidden_field rodauth.webauthn_auth_challenge_hmac_param, value: rodauth.compute_hmac(cred.challenge) %> <%= form.text_field rodauth.webauthn_auth_param, value: "", id: "webauthn-auth", aria: { hidden: "true" } %> <div id="webauthn-auth-button"> <div class="form-group mb-3"> <%= form.submit rodauth.webauthn_auth_button, class: "btn btn-primary" %> </div> </div> <% end %> <%= javascript_include_tag rodauth.webauthn_auth_js_path %>
Version data entries
11 entries across 11 versions & 1 rubygems