mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 17:53:41 +00:00
small cleanup
This commit is contained in:
@@ -352,8 +352,7 @@ impl EXPERIMENTAL_IPluginAuthenticator_Impl for PluginAuthenticatorComObject_Imp
|
||||
} => {
|
||||
util::message("Creating WebAuthn make credential response");
|
||||
|
||||
match create_make_credential_response(credential_id, attestation_object)
|
||||
{
|
||||
match create_make_credential_response(attestation_object) {
|
||||
Ok(webauthn_response) => {
|
||||
util::message("Successfully created WebAuthn response");
|
||||
*response = webauthn_response;
|
||||
|
||||
@@ -196,7 +196,7 @@ pub fn send_registration_request(
|
||||
user_name: request.user_name.clone(),
|
||||
client_data_hash: request.client_data_hash.clone(),
|
||||
user_verification: request.user_verification.clone(),
|
||||
window_xy: Position { x: 400, y: 400 },
|
||||
window_xy: Position { x: 400, y: 400 }, // TODO: Get actual window position
|
||||
supported_algorithms: request.supported_algorithms.clone(),
|
||||
excluded_credentials: request.excluded_credentials.clone(),
|
||||
};
|
||||
@@ -218,7 +218,6 @@ pub fn send_registration_request(
|
||||
|
||||
/// Creates a WebAuthn make credential response from Bitwarden's registration response
|
||||
pub unsafe fn create_make_credential_response(
|
||||
credential_id: Vec<u8>,
|
||||
attestation_object: Vec<u8>,
|
||||
) -> std::result::Result<*mut ExperimentalWebAuthnPluginOperationResponse, HRESULT> {
|
||||
// Use the attestation object directly as the encoded response
|
||||
|
||||
Reference in New Issue
Block a user