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