1
0
mirror of https://github.com/bitwarden/server synced 2026-02-26 01:13:35 +00:00

fix(register): [PM-27084] Account Register Uses New Data Types - Added more tests.

This commit is contained in:
Patrick Pimentel
2025-12-29 13:39:08 -05:00
parent 2d9786e09d
commit cc895d0598
2 changed files with 146 additions and 9 deletions

View File

@@ -63,14 +63,6 @@ public class RegisterFinishRequestModel : IValidatableObject
public User ToUser()
{
// PM-28143 - Remove line below
// When we process this request to a user object, check if the unlock and authentication
// data has been passed through, and if so they should have matching values.
MasterPasswordUnlockDataRequestModel.ThrowIfExistsAndNotMatchingAuthenticationData(MasterPasswordAuthentication, MasterPasswordUnlock);
// PM-28143 - Remove line below
MasterPasswordAuthenticationDataRequestModel.ThrowIfExistsAndHashIsNotEqual(MasterPasswordAuthentication, MasterPasswordHash);
var user = new User
{
Email = Email,