make kdfIterations nullable (#1169)

This commit is contained in:
Matt Portune 2020-12-08 10:54:58 -05:00 committed by GitHub
parent e79097603f
commit dcfdc7d0ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ namespace Bit.Core.Abstractions
Task<string> GetUserIdAsync(); Task<string> GetUserIdAsync();
Task<bool> IsAuthenticatedAsync(); Task<bool> IsAuthenticatedAsync();
Task ReplaceOrganizationsAsync(Dictionary<string, OrganizationData> organizations); Task ReplaceOrganizationsAsync(Dictionary<string, OrganizationData> 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); Task SetSecurityStampAsync(string stamp);
} }
} }

View file

@ -19,6 +19,6 @@ namespace Bit.Core.Models.Response
public string Key { get; set; } public string Key { get; set; }
public string TwoFactorToken { get; set; } public string TwoFactorToken { get; set; }
public KdfType Kdf { get; set; } public KdfType Kdf { get; set; }
public int KdfIterations { get; set; } public int? KdfIterations { get; set; }
} }
} }

View file

@ -32,7 +32,7 @@ namespace Bit.Core.Services
_tokenService = tokenService; _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; _email = email;
_userId = userId; _userId = userId;