1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

[PM-18721] verify new password against policies

This commit is contained in:
rr-bw
2025-05-07 16:04:54 -07:00
parent 22d17bee58
commit cd4ee56238

View File

@@ -270,6 +270,15 @@ export class InputPasswordComponent implements OnInit {
if (this.flow === InputPasswordFlow.ChangePasswordDelegation) {
const newPassword = this.formGroup.controls.newPassword.value;
const newPasswordVerified = await this.verifyNewPassword(
newPassword,
this.passwordStrengthScore,
false,
);
if (!newPasswordVerified) {
return;
}
const passwordInputResult: PasswordInputResult = {
newPassword,
};