1
0
mirror of https://github.com/bitwarden/server synced 2026-02-08 12:40:08 +00:00

Update src/Core/Auth/Models/Api/Request/Accounts/RegisterFinishRequestModel.cs

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
This commit is contained in:
Patrick-Pimentel-Bitwarden
2025-12-11 17:44:41 -05:00
committed by GitHub
parent f47dac977d
commit bb2ba1468b

View File

@@ -65,6 +65,7 @@ public class RegisterFinishRequestModel : IValidatableObject
MasterPasswordHint = MasterPasswordHint,
Kdf = MasterPasswordUnlockData?.Kdf.KdfType ?? Kdf ?? throw new Exception("KdfType couldn't be found on either the MasterPasswordUnlockData or the Kdf property passed in."),
KdfIterations = MasterPasswordUnlockData?.Kdf.Iterations ?? KdfIterations ?? throw new Exception("KdfIterations couldn't be found on either the MasterPasswordUnlockData or the KdfIterations property passed in."),
// KdfMemory and KdfParallelism are optional (only used for Argon2id)
KdfMemory = MasterPasswordUnlockData?.Kdf.Memory ?? KdfMemory,
KdfParallelism = MasterPasswordUnlockData?.Kdf.Parallelism ?? KdfParallelism,
// PM-28827 To be added when MasterPasswordSalt is added to the user column