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:
@@ -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