1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00

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<bool> IsAuthenticatedAsync();
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);
}
}
}

View File

@ -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; }
}
}

View File

@ -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;