Sha256: f5fff38f99afaf4886de0f7cb66d669e9eb6c1ef67cf64cd3b06730f03536172
Contents?: true
Size: 817 Bytes
Versions: 5
Compression:
Stored size: 817 Bytes
Contents
<%% cred = <%= rodauth %>.new_webauthn_credential %> <%%= form_tag <%= rodauth %>.webauthn_setup_path, method: :post, id: "webauthn-setup-form", data: { credential_options: cred.as_json.to_json } do %> <%%= hidden_field_tag <%= rodauth %>.webauthn_setup_challenge_param, cred.challenge %> <%%= hidden_field_tag <%= rodauth %>.webauthn_setup_challenge_hmac_param, <%= rodauth %>.compute_hmac(cred.challenge) %> <%%= text_field_tag <%= rodauth %>.webauthn_setup_param, "", id: "webauthn-setup", aria: { hidden: "true" } %> <%%= render "password_field" if <%= rodauth %>.two_factor_modifications_require_password? %> <div id="webauthn-setup-button"> <%%= render "submit", value: "Setup WebAuthn Authentication" %> </div> <%% end %> <%%= javascript_include_tag <%= rodauth %>.webauthn_setup_js_path %>
Version data entries
5 entries across 5 versions & 1 rubygems