diff --git a/app/javascript/packs/webauthn-authenticate.ts b/app/javascript/packs/webauthn-authenticate.ts index c16e114157a..f98180d9677 100644 --- a/app/javascript/packs/webauthn-authenticate.ts +++ b/app/javascript/packs/webauthn-authenticate.ts @@ -6,8 +6,6 @@ function webauthn() { const webauthnSuccessContainer = document.getElementById('webauthn-auth-successful')!; const webauthAlertContainer = document.querySelector('.usa-alert--error')!; - const webauthnPlatformRequested = - webauthnInProgressContainer.dataset.platformAuthenticatorRequested === 'true'; const spinner = document.getElementById('spinner')!; spinner.classList.remove('display-none'); @@ -41,8 +39,6 @@ function webauthn() { }) .catch((error: Error) => { (document.getElementById('webauthn_error') as HTMLInputElement).value = error.name; - (document.getElementById('platform') as HTMLInputElement).value = - String(webauthnPlatformRequested); (document.getElementById('webauthn_form') as HTMLFormElement).submit(); }); } diff --git a/app/views/two_factor_authentication/webauthn_verification/show.html.erb b/app/views/two_factor_authentication/webauthn_verification/show.html.erb index 8d1e4401730..c12ff6faee0 100644 --- a/app/views/two_factor_authentication/webauthn_verification/show.html.erb +++ b/app/views/two_factor_authentication/webauthn_verification/show.html.erb @@ -22,7 +22,7 @@ <%= hidden_field_tag :signature, '', id: 'signature' %> <%= hidden_field_tag :client_data_json, '', id: 'client_data_json' %> <%= hidden_field_tag :webauthn_error, '', id: 'webauthn_error' %> - <%= hidden_field_tag :platform, @presenter.platform_authenticator?, id: 'platform' %> + <%= hidden_field_tag :platform, @presenter.platform_authenticator? %> <%= content_tag( :div,