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