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