[CST-6782] Disable registration button if cookies haven't been accepted

This commit is contained in:
Davide Negretti
2022-10-03 17:41:38 +02:00
parent 8f66f1fe8f
commit 2e4b96b2dd

View File

@@ -41,7 +41,7 @@
</div>
<ng-container *ngIf="!((googleRecaptchaService.captchaVersion() | async) === 'v2' && (googleRecaptchaService.captchaMode() | async) === 'invisible'); else v2Invisible">
<button class="btn btn-primary" [disabled]="form.invalid || disableUntilChecked" (click)="register()">
<button class="btn btn-primary" [disabled]="form.invalid || registrationVerification && !isRecaptchaCookieAccepted() || disableUntilChecked" (click)="register()">
{{ MESSAGE_PREFIX + '.submit' | translate }}
</button>
</ng-container>