Skip to content

Commit 4ac70bc

Browse files
committed
add captcha plugin
1 parent 623ea1c commit 4ac70bc

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

dev-demo/resources/adminuser.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ export default {
137137
}
138138
}
139139
),
140-
new CaptchaPlugin({
141-
captchaAdapter: new CaptchaAdapterCloudflare({
142-
siteKey: `${process.env.CLOUDFLARE_SITE_KEY}`, // Replace with your site key
143-
secretKey: `${process.env.CLOUDFLARE_SECRET_KEY}`, // Replace with your secret key
144-
}),
145-
}),
146140
new ForeignInlineListPlugin({
147141
foreignResourceId: 'cars_sl'
148142
}),

live-demo/app/resources/users.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export default {
3030
}),
3131
new CaptchaPlugin({
3232
captchaAdapter: new CaptchaAdapterCloudflare({
33-
siteKey: "0x4AAAAAACy5qrUGxw0KU3KI", // Replace with your site key
34-
secretKey: "0x4AAAAAACy5qvlONDC41YGD9XCwRl9xHD0", // Replace with your secret key
33+
siteKey: `${process.env.CLOUDFLARE_SITE_KEY}`, // Replace with your site key
34+
secretKey: `${process.env.CLOUDFLARE_SECRET_KEY}`, // Replace with your secret key
3535
}),
3636
}),
3737
],

0 commit comments

Comments
 (0)