1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 02:03:46 +00:00

Reference id storage and signup

This commit is contained in:
Chad Scharf
2020-06-25 12:28:22 -04:00
parent f23a8edc45
commit fca7b162bf
11 changed files with 472 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ namespace Bit.Core.Models.Api
public Guid? OrganizationUserId { get; set; }
public KdfType? Kdf { get; set; }
public int? KdfIterations { get; set; }
public string ReferenceId { get; set; }
public User ToUser()
{
@@ -34,7 +35,8 @@ namespace Bit.Core.Models.Api
Email = Email,
MasterPasswordHint = MasterPasswordHint,
Kdf = Kdf.GetValueOrDefault(KdfType.PBKDF2_SHA256),
KdfIterations = KdfIterations.GetValueOrDefault(5000)
KdfIterations = KdfIterations.GetValueOrDefault(5000),
ReferenceId = ReferenceId,
};
if (Key != null)