1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-16 01:21:48 +01:00

Updated email change component to getOrDeriveMasterKey (#6009)

This commit is contained in:
Todd Martin 2023-08-10 13:39:33 -04:00 committed by GitHub
parent 2fe93e37df
commit 55482c5648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ export class ChangeEmailComponent implements OnInit {
request.newEmail = this.newEmail;
request.masterPasswordHash = await this.cryptoService.hashMasterKey(
this.masterPassword,
null
await this.cryptoService.getOrDeriveMasterKey(this.masterPassword)
);
try {
this.formPromise = this.apiService.postEmailToken(request);
@ -69,7 +69,7 @@ export class ChangeEmailComponent implements OnInit {
request.newEmail = this.newEmail;
request.masterPasswordHash = await this.cryptoService.hashMasterKey(
this.masterPassword,
null
await this.cryptoService.getOrDeriveMasterKey(this.masterPassword)
);
const kdf = await this.stateService.getKdfType();
const kdfConfig = await this.stateService.getKdfConfig();