1
0
mirror of https://github.com/bitwarden/server synced 2026-02-06 11:44:06 +00:00

test(register): [PM-27084] Account Register Uses New Data Types - Addressed more feedback. No longer overriding the master password hash.

This commit is contained in:
Patrick Pimentel
2026-01-12 16:02:20 -05:00
parent f73904d6fb
commit f92d7d2bff

View File

@@ -240,11 +240,10 @@ public class IdentityApplicationFactory : WebApplicationFactoryBase<Startup>
{
var unlock = requestModel.MasterPasswordUnlock;
// Always force a valid encrypted string for tests to avoid model validation failures.
var masterKeyWrappedUserKey = DefaultEncryptedString;
requestModel.MasterPasswordUnlock = new MasterPasswordUnlockDataRequestModel
{
Kdf = alignedKdf,
MasterKeyWrappedUserKey = masterKeyWrappedUserKey,
MasterKeyWrappedUserKey = unlock.MasterKeyWrappedUserKey,
Salt = string.IsNullOrWhiteSpace(unlock.Salt) ? requestModel.Email : unlock.Salt
};
}