diff --git a/src/Core/Abstractions/IUserService.cs b/src/Core/Abstractions/IUserService.cs index b282acf54..076a612b2 100644 --- a/src/Core/Abstractions/IUserService.cs +++ b/src/Core/Abstractions/IUserService.cs @@ -20,7 +20,7 @@ namespace Bit.Core.Abstractions Task GetUserIdAsync(); Task IsAuthenticatedAsync(); Task ReplaceOrganizationsAsync(Dictionary organizations); - Task SetInformationAsync(string userId, string email, KdfType kdf, int kdfIterations); + Task SetInformationAsync(string userId, string email, KdfType kdf, int? kdfIterations); Task SetSecurityStampAsync(string stamp); } -} \ No newline at end of file +} diff --git a/src/Core/Models/Response/IdentityTokenResponse.cs b/src/Core/Models/Response/IdentityTokenResponse.cs index 6ccc9d6bc..27fe84fa7 100644 --- a/src/Core/Models/Response/IdentityTokenResponse.cs +++ b/src/Core/Models/Response/IdentityTokenResponse.cs @@ -19,6 +19,6 @@ namespace Bit.Core.Models.Response public string Key { get; set; } public string TwoFactorToken { get; set; } public KdfType Kdf { get; set; } - public int KdfIterations { get; set; } + public int? KdfIterations { get; set; } } } diff --git a/src/Core/Services/UserService.cs b/src/Core/Services/UserService.cs index f422528f3..d1e844f6f 100644 --- a/src/Core/Services/UserService.cs +++ b/src/Core/Services/UserService.cs @@ -32,7 +32,7 @@ namespace Bit.Core.Services _tokenService = tokenService; } - public async Task SetInformationAsync(string userId, string email, KdfType kdf, int kdfIterations) + public async Task SetInformationAsync(string userId, string email, KdfType kdf, int? kdfIterations) { _email = email; _userId = userId;