1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 20:24:01 +00:00

feat(change-password-component): Change Password Update [18720] - Small directive change.

This commit is contained in:
Patrick Pimentel
2025-05-28 14:32:13 -04:00
parent 1a77128529
commit 2fc076bb3c
2 changed files with 5 additions and 2 deletions

View File

@@ -31,7 +31,7 @@
</bit-form-field>
<div class="tw-mb-6">
<bit-form-field disableMargin>
<bit-form-field [disableMargin]="true">
<bit-label>{{ "newMasterPass" | i18n }}</bit-label>
<input
id="input-password-form_new-password"

View File

@@ -192,7 +192,10 @@ export class InputPasswordComponent implements OnInit {
}
private addFormFieldsIfNecessary() {
if (this.isChangePasswordFlow()) {
if (
this.flow === InputPasswordFlow.ChangePassword ||
this.flow === InputPasswordFlow.ChangePasswordWithOptionalUserKeyRotation
) {
this.formGroup.addControl(
"currentPassword",
this.formBuilder.nonNullable.control("", Validators.required),