1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

chore: added new ui fields (#2991)

This commit is contained in:
Brandon Maharaj
2022-07-18 17:47:53 -04:00
committed by GitHub
parent abed118ef0
commit 4d5df858e9
5 changed files with 16 additions and 12 deletions

View File

@@ -36,6 +36,7 @@ import { UpdateKeyRequest } from "@bitwarden/common/models/request/updateKeyRequ
export class ChangePasswordComponent extends BaseChangePasswordComponent {
rotateEncKey = false;
currentMasterPassword: string;
masterPasswordHint: string;
constructor(
i18nService: I18nService,
@@ -69,6 +70,8 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
if (await this.keyConnectorService.getUsesKeyConnector()) {
this.router.navigate(["/settings/security/two-factor"]);
}
this.masterPasswordHint = (await this.apiService.getProfile()).masterPasswordHint;
await super.ngOnInit();
}
@@ -156,6 +159,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
this.currentMasterPassword,
null
);
request.masterPasswordHint = this.masterPasswordHint;
request.newMasterPasswordHash = newMasterPasswordHash;
request.key = newEncKey[1].encryptedString;