Sha256: 2f17cd590f56386c040f248bd0ce8f344af63a3c255f480f2fd9bd89aba58a4c
Contents?: true
Size: 898 Bytes
Versions: 18
Compression:
Stored size: 898 Bytes
Contents
<% cred = rodauth.webauthn_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", class: "d-none", 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, extname: false %>
Version data entries
18 entries across 18 versions & 2 rubygems