Skip to content

Commit 9345e4a

Browse files
committed
fix: update CaptchaAdapter interface to return script for the captcha widget
1 parent 8bde330 commit 9345e4a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adminforth/types/adapters/CaptchaAdapter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ export interface CaptchaAdapter {
2424
getToken(): Promise<string> | string;
2525

2626
/**
27-
* Renders the captcha widget HTML.
27+
* Returns the script HTML for the captcha widget.
2828
*/
29-
renderWidget(): void;
30-
29+
getRenderWidgetCode(): string;
3130
/**
3231
* Validates the captcha token.
3332
*/

0 commit comments

Comments
 (0)