Skip to content

Commit 10c2269

Browse files
committed
update captcha reset
1 parent 223634c commit 10c2269

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

projects/fusio-sdk/src/lib/component/password/reset/reset.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1 class="p-3 m-0 lead">Password reset</h1>
1313
</div>
1414
<div class="mb-3" *ngIf="captchaKey">
1515
<label>Captcha:</label>
16-
<ngx-recaptcha2 #captchaElem [siteKey]="captchaKey" (success)="setCaptcha($event)" [useGlobalDomain]="false" formControlName="recaptcha"></ngx-recaptcha2>
16+
<ngx-recaptcha2 #captchaElem [siteKey]="captchaKey" (success)="setCaptcha($event)" [useGlobalDomain]="false"></ngx-recaptcha2>
1717
</div>
1818
<button type="submit" class="btn btn-primary" [disabled]="loading">
1919
<span *ngIf="loading" class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>

projects/fusio-sdk/src/lib/component/password/reset/reset.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export class ResetComponent implements OnInit {
2626
}
2727

2828
ngOnInit(): void {
29-
let captchaKey = this.config.getRecpatcha();
30-
if (captchaKey) {
31-
this.captchaKey = captchaKey;
32-
}
29+
this.captchaKey = this.config.getRecpatcha();
3330
}
3431

3532
public async doReset() {

0 commit comments

Comments
 (0)