You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// PM-28143 - Remove line below (made optional during migration to MasterPasswordUnlockData)
45
51
publicKdfType?Kdf{get;set;}
@@ -62,6 +68,8 @@ public class RegisterFinishRequestModel : IValidatableObject
62
68
63
69
publicGuid?ProviderUserId{get;set;}
64
70
71
+
// TODO remove with https://bitwarden.atlassian.net/browse/PM-TBD
72
+
[Obsolete("Use ToV2User instead")]
65
73
publicUserToUser()
66
74
{
67
75
varuser=newUser
@@ -80,11 +88,57 @@ public User ToUser()
80
88
Key=MasterPasswordUnlock?.MasterKeyWrappedUserKey??UserSymmetricKey??thrownewBadRequestException("MasterKeyWrappedUserKey couldn't be found on either the MasterPasswordUnlockData or the UserSymmetricKey property passed in."),
81
89
};
82
90
83
-
UserAsymmetricKeys.ToUser(user);
91
+
user=UserAsymmetricKeys?.ToUser(user)??thrownewException("User's public and private account keys couldn't be found in either AccountKeys or UserAsymmetricKeys");
KdfType=Kdf??thrownewException("KdfType couldn't be found on either the MasterPasswordUnlockData or the Kdf property passed in."),
117
+
Iterations=KdfIterations??thrownewException("KdfIterations couldn't be found on either the MasterPasswordUnlockData or the KdfIterations property passed in."),
118
+
// KdfMemory and KdfParallelism are optional (only used for Argon2id)
119
+
Memory=KdfMemory,
120
+
Parallelism=KdfParallelism,
121
+
},
122
+
MasterKeyWrappedUserKey=UserSymmetricKey??thrownewException("MasterKeyWrappedUserKey couldn't be found on either the MasterPasswordUnlockData or the UserSymmetricKey property passed in."),
123
+
// PM-28827 To be added when MasterPasswordSalt is added to the user column
0 commit comments