1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 00:33:33 +00:00

Fix hash purpose

This commit is contained in:
Bernd Schoolmann
2025-12-16 15:11:48 +01:00
parent 624ae80382
commit f10f7c36b3

View File

@@ -70,7 +70,7 @@ export class DefaultChangeKdfService implements ChangeKdfService {
const serverMasterKeyHash = await this.keyService.hashMasterKey(
masterPassword,
masterKey,
HashPurpose.ServerAuthorization,
HashPurpose.LocalAuthorization,
);
await this.masterPasswordService.setMasterKeyHash(serverMasterKeyHash, userId);
await this.masterPasswordService.setMasterKey(masterKey, userId);