Commits
Davide Negretti authored 2e4b96b2dd0
34 34 | <p class="m-0"><a href="javascript:void(0);" (click)="this.klaroService.showSettings()">{{ MESSAGE_PREFIX + '.google-recaptcha.open-cookie-settings' | translate }}</a></p> |
35 35 | </ds-alert> |
36 36 | |
37 37 | <div class="my-3" *ngIf="isRecaptchaCookieAccepted() && (googleRecaptchaService.captchaVersion() | async) === 'v2'"> |
38 38 | <ds-google-recaptcha [captchaMode]="(googleRecaptchaService.captchaMode() | async)" |
39 39 | (executeRecaptcha)="register($event)" (checkboxChecked)="onCheckboxChecked($event)" |
40 40 | (showNotification)="showNotification($event)"></ds-google-recaptcha> |
41 41 | </div> |
42 42 | |
43 43 | <ng-container *ngIf="!((googleRecaptchaService.captchaVersion() | async) === 'v2' && (googleRecaptchaService.captchaMode() | async) === 'invisible'); else v2Invisible"> |
44 - | <button class="btn btn-primary" [disabled]="form.invalid || disableUntilChecked" (click)="register()"> |
44 + | <button class="btn btn-primary" [disabled]="form.invalid || registrationVerification && !isRecaptchaCookieAccepted() || disableUntilChecked" (click)="register()"> |
45 45 | {{ MESSAGE_PREFIX + '.submit' | translate }} |
46 46 | </button> |
47 47 | </ng-container> |
48 48 | |
49 49 | <ng-template #v2Invisible> |
50 50 | <button class="btn btn-primary" [disabled]="form.invalid" (click)="executeRecaptcha()"> |
51 51 | {{ MESSAGE_PREFIX + '.submit' | translate }} |
52 52 | </button> |
53 53 | </ng-template> |
54 54 | </form> |