Skip to content

Commit 086b005

Browse files
authored
Merge pull request #545 from devforth/next
Next
2 parents a21d9b2 + 89e3edf commit 086b005

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

adminforth/documentation/docs/tutorial/08-Plugins/19-login-captcha.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To use the plugin, add it to your user resource file. Here's an example:
2525
```ts title="./resources/adminuser.ts"
2626
// Import the plugin and adapter
2727
import CaptchaPlugin from "@adminforth/login-captcha";
28-
import CaptchaAdapterCloudflare from "@adminforth/captcha-adapter-cloudflare";
28+
import CaptchaAdapterCloudflare from "@adminforth/login-captcha-adapter-cloudflare";
2929

3030
...
3131

adminforth/types/Back.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,4 +2152,11 @@ export interface IWebSocketBroker {
21522152
publish: (topic: string, data: any, filterUsers?: (adminUser: AdminUser) => Promise<boolean>) => void;
21532153

21542154
registerWsClient: (client: IWebSocketClient) => void;
2155+
}
2156+
export interface PluginsCommonOptions {
2157+
/**
2158+
* Id of the plugin. It should be unique across all plugins.
2159+
* It is required if you want to log custom actions, otherwise it is optional.
2160+
*/
2161+
id?: string;
21552162
}

0 commit comments

Comments
 (0)