[PM-2135] feat: use form validation in prompt
This commit is contained in:
parent
59813b4140
commit
f06844521f
|
@ -36,6 +36,12 @@ export class UserVerificationPromptComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
submit = async () => {
|
submit = async () => {
|
||||||
|
this.formGroup.markAllAsTouched();
|
||||||
|
|
||||||
|
if (this.formGroup.invalid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//Incorrect secret will throw an invalid password error.
|
//Incorrect secret will throw an invalid password error.
|
||||||
await this.userVerificationService.verifyUser(this.secret.value);
|
await this.userVerificationService.verifyUser(this.secret.value);
|
||||||
|
|
Loading…
Reference in New Issue