Skip to content

Commit

Permalink
Merge pull request #2931 from dspace-unimr/fix-#2918-new-user-registr…
Browse files Browse the repository at this point in the history
…ation-does-not-work

Add check for registration verification to the register email form.
  • Loading branch information
tdonohue authored Apr 15, 2024
2 parents c13d23d + 36b9200 commit a16139c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>{{MESSAGE_PREFIX + '.header'|translate}}</h1>
(showNotification)="showNotification($event)"></ds-google-recaptcha>
</div>

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

0 comments on commit a16139c

Please sign in to comment.