diff --git a/src/Core/Services/IUserService.cs b/src/Core/Services/IUserService.cs index 1883c6e65591..736c730e6053 100644 --- a/src/Core/Services/IUserService.cs +++ b/src/Core/Services/IUserService.cs @@ -28,7 +28,7 @@ public interface IUserService Task DeleteWebAuthnKeyAsync(User user, int id); Task CompleteWebAuthRegistrationAsync(User user, int value, string name, AuthenticatorAttestationRawResponse attestationResponse); Task StartWebAuthnLoginRegistrationAsync(User user); - Task CompleteWebAuthLoginRegistrationAsync(User user, string name, bool supportsPrf, string encryptedUserKey, string encryptedPublicKey, string encryptedPrivateKey, CredentialCreateOptions options, AuthenticatorAttestationRawResponse attestationResponse); + Task CompleteWebAuthLoginRegistrationAsync(User user, string name, CredentialCreateOptions options, AuthenticatorAttestationRawResponse attestationResponse, bool supportsPrf, string encryptedUserKey = null, string encryptedPublicKey = null, string encryptedPrivateKey = null); Task StartWebAuthnLoginAssertionAsync(User user); Task CompleteWebAuthLoginAssertionAsync(AuthenticatorAssertionRawResponse assertionResponse, User user); Task SendEmailVerificationAsync(User user); diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 7fc6c12e6578..e0d2e6aad5a0 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -543,10 +543,9 @@ public async Task StartWebAuthnLoginRegistrationAsync(U return options; } - public async Task CompleteWebAuthLoginRegistrationAsync(User user, string name, bool supportsPrf, - string encryptedUserKey, string encryptedPublicKey, string encryptedPrivateKey, - CredentialCreateOptions options, - AuthenticatorAttestationRawResponse attestationResponse) + public async Task CompleteWebAuthLoginRegistrationAsync(User user, string name, CredentialCreateOptions options, + AuthenticatorAttestationRawResponse attestationResponse, bool supportsPrf, + string encryptedUserKey = null, string encryptedPublicKey = null, string encryptedPrivateKey = null) { var existingCredentials = await _webAuthnCredentialRepository.GetManyByUserIdAsync(user.Id); if (existingCredentials.Count >= 5)