File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed
Expand file tree Collapse file tree 3 files changed +2
-16
lines changed 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 "@adminforth/login-captcha-adapter-cloudflare" ;
5- import CaptchaPlugin from "@adminforth/login-captcha" ;
64
75const blockDemoUsers = async ( { record, adminUser, resource } ) => {
86 if ( adminUser . dbUser && adminUser . dbUser . role !== 'superadmin' ) {
@@ -27,13 +25,7 @@ export default {
2725 } ) ,
2826 new ForeignInlineListPlugin ( {
2927 foreignResourceId : 'audit_logs' ,
30- } ) ,
31- new CaptchaPlugin ( {
32- captchaAdapter : new CaptchaAdapterCloudflare ( {
33- siteKey : `${ process . env . CLOUDFLARE_SITE_KEY } ` , // Replace with your site key
34- secretKey : `${ process . env . CLOUDFLARE_SECRET_KEY } ` , // Replace with your secret key
35- } ) ,
36- } ) ,
28+ } ) ,
3729 ] ,
3830 columns : [
3931 {
Original file line number Diff line number Diff line change 7373 VAULT_AWS_SECRET_ACCESS_KEY :
7474 from_secret : VAULT_AWS_SECRET_ACCESS_KEY
7575 VAULT_ADMIN_PASSWORD :
76- from_secret : VAULT_ADMIN_PASSWORD
77- VAULT_CLOUDFLARE_SITE_KEY :
78- from_secret : VAULT_CLOUDFLARE_SITE_KEY
79- VAULT_CLOUDFLARE_SECRET_KEY :
80- from_secret : VAULT_CLOUDFLARE_SECRET_KEY
76+ from_secret : VAULT_ADMIN_PASSWORD
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ services:
1212 - AWS_SECRET_ACCESS_KEY=${VAULT_AWS_SECRET_ACCESS_KEY}
1313 - DATABASE_FILE_URL=file:./db/live.sqlite
1414 - ADMIN_PASSWORD=${VAULT_ADMIN_PASSWORD}
15- - CLOUDFLARE_SITE_KEY=${VAULT_CLOUDFLARE_SITE_KEY}
16- - CLOUDFLARE_SECRET_KEY=${VAULT_CLOUDFLARE_SECRET_KEY}
1715 volumes :
1816 - af-db:/code/db/
1917
You can’t perform that action at this time.
0 commit comments