diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index d20d105..1cfb409 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -52,6 +52,7 @@ export class AppComponent {
this.checkPwResetRoute();
} else {
this.router.navigate(['/summary']);
+ this.sharedService.isBtnDisabled = false;
}
}
diff --git a/src/app/components/login/login.component.html b/src/app/components/login/login.component.html
index 341a2ca..f41f247 100644
--- a/src/app/components/login/login.component.html
+++ b/src/app/components/login/login.component.html
@@ -33,12 +33,14 @@
}
{{ "login.errorMail0" | translate }}
- } @if (loginSerivce.errorCode == 'auth/invalid-email') { + } @if (loginSerivce.errorCode == 'auth/invalid-email' && + !sharedService.isBtnDisabled) {{{ "login.errorMail1" | translate }}
} @if (mail.valid && mail.touched && - !checkIfUserEmailIsValid(loginData.mail.toLowerCase())) { + !checkIfUserEmailIsValid(loginData.mail.toLowerCase()) && + !sharedService.isBtnDisabled) {{{ "login.errorMail2" | translate }}
}{{ "login.errorPassword0" | translate }}
- } @if (loginSerivce.errorCode == 'auth/invalid-credential') { + } @if (loginSerivce.errorCode == 'auth/invalid-credential' && + !sharedService.isBtnDisabled) {{{ "login.errorPassword1" | translate }}
}{{ "register.errorName" | translate }}
}{{ "register.errorMail0" | translate }}
} @else { @if (mail.touched && - !checkIfUserEmailIsValid(registerData.mail.toLowerCase())) { + !checkIfUserEmailIsValid(registerData.mail.toLowerCase()) && + !sharedService.isBtnDisabled) {{{ "register.errorMail1" | translate }}
} @else { @if - (existEmailonServer(registerData.mail.toLowerCase()).length > 0) { + (existEmailonServer(registerData.mail.toLowerCase()).length > 0 && + !sharedService.isBtnDisabled) {{{ "register.errorMail2" | translate }}
} } }{{ "register.errorPassword0" | translate }}
- } @else { @if (registerData.password.length < 6 && password.touched) { + } @else { @if (registerData.password.length < 6 && password.touched && + !sharedService.isBtnDisabled) {{{ "register.errorPassword1" | translate }}
} }{{ "register.errorPassword0" | translate }}
} @if (registerData.password !== registerData.passwordConfirm && - registerData.password !== "" && registerData.passwordConfirm !== "") { + registerData.password !== "" && registerData.passwordConfirm !== "" && + !sharedService.isBtnDisabled) {{{ "register.errorPassword2" | translate }}
}