1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

[PM-2135] feat: use form validation in prompt

This commit is contained in:
Andreas Coroiu
2023-05-05 11:24:42 +02:00
parent 59813b4140
commit f06844521f

View File

@@ -36,6 +36,12 @@ export class UserVerificationPromptComponent {
}
submit = async () => {
this.formGroup.markAllAsTouched();
if (this.formGroup.invalid) {
return;
}
try {
//Incorrect secret will throw an invalid password error.
await this.userVerificationService.verifyUser(this.secret.value);