Skip to content

Commit ba98648

Browse files
committed
dev-demo: deactivate captcha plugin on dev-demo
1 parent b73f54f commit ba98648

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎dev-demo/resources/adminuser.ts‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ export default {
219219
}
220220
}),
221221
OAuthPlugin,
222-
...(process.env.CLOUDFLARE_TURNSTILE_SECRET_KEY ? [
223-
new CaptchaPlugin({
224-
captchaAdapter: new CaptchaAdapterCloudflare({
225-
siteKey: process.env.CLOUDFLARE_TURNSTILE_SITE_KEY as string,
226-
secretKey: process.env.CLOUDFLARE_TURNSTILE_SECRET_KEY,
227-
}),
228-
keyValueAdapter: levelDbAdapter,
229-
}),
230-
] : []),
222+
// ...(process.env.CLOUDFLARE_TURNSTILE_SECRET_KEY ? [
223+
// new CaptchaPlugin({
224+
// captchaAdapter: new CaptchaAdapterCloudflare({
225+
// siteKey: process.env.CLOUDFLARE_TURNSTILE_SITE_KEY as string,
226+
// secretKey: process.env.CLOUDFLARE_TURNSTILE_SECRET_KEY,
227+
// }),
228+
// keyValueAdapter: levelDbAdapter,
229+
// }),
230+
// ] : []),
231231
new UserSoftDelete({
232232
activeFieldName: "is_active",
233233
//in canDeactivate we pass a function, that specify adminusers roles, which can seactivate other adminusers

0 commit comments

Comments
 (0)