File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import AdminForth , { AdminForthDataTypes , AdminForthResourceColumn } from 'adminforth' ;
22import ForeignInlineListPlugin from '@adminforth/foreign-inline-list' ;
33import { randomUUID } from 'crypto' ;
4+ import CaptchaAdapterCloudflare from '../../../adapters/adminforth-login-captcha-adapter-cloudflare/index.js' ;
5+ import CaptchaPlugin from '../../../plugins/adminforth-login-captcha/index.js' ;
46
57const blockDemoUsers = async ( { record, adminUser, resource } ) => {
68 if ( adminUser . dbUser && adminUser . dbUser . role !== 'superadmin' ) {
@@ -26,6 +28,12 @@ export default {
2628 new ForeignInlineListPlugin ( {
2729 foreignResourceId : 'audit_logs' ,
2830 } ) ,
31+ new CaptchaPlugin ( {
32+ captchaAdapter : new CaptchaAdapterCloudflare ( {
33+ siteKey : "0x4AAAAAACy5qrUGxw0KU3KI" , // Replace with your site key
34+ secretKey : "0x4AAAAAACy5qvlONDC41YGD9XCwRl9xHD0" , // Replace with your secret key
35+ } ) ,
36+ } ) ,
2937 ] ,
3038 columns : [
3139 {
You can’t perform that action at this time.
0 commit comments