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:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user