Optimized Captcha implementation by solving not defined bugs

This commit is contained in:
2025-11-28 23:38:08 +01:00
parent 880d0ab1d6
commit e754df7e5c
4 changed files with 8 additions and 8 deletions

View File

@@ -98,5 +98,5 @@ CAPTCHA:
KEY: "" KEY: ""
SECRET: "" SECRET: ""
RECAPTCHA_ENABLED: "{{ (CAPTCHA.RECAPTCHA.KEY | length > 0) and (CAPTCHA.RECAPTCHA.SECRET | length > 0) }}" RECAPTCHA_ENABLED: "{{ CAPTCHA.RECAPTCHA.KEY | default('') | length and CAPTCHA.RECAPTCHA.SECRET | default('') | length }}"
HCAPTCHA_ENABLED: "{{ (CAPTCHA.HCAPTCHA.KEY | length > 0) and (CAPTCHA.HCAPTCHA.SECRET | length > 0) }}" HCAPTCHA_ENABLED: "{{ CAPTCHA.HCAPTCHA.KEY | default('') | length and CAPTCHA.HCAPTCHA.SECRET | default('') | length }}"

View File

@@ -32,8 +32,8 @@ email:
from_name: "Customer Relationship Management ({{ PRIMARY_DOMAIN }})" from_name: "Customer Relationship Management ({{ PRIMARY_DOMAIN }})"
credentials: credentials:
recaptcha: recaptcha:
key: "{{ CAPTCHA.RECAPTCHA.KEY }}" key: "{{ CAPTCHA.RECAPTCHA.KEY | default('') }}"
secret: "{{ CAPTCHA.RECAPTCHA.SECRET }}" secret: "{{ CAPTCHA.RECAPTCHA.SECRET | default('') }}"
docker: docker:
services: services:
database: database:

View File

@@ -47,8 +47,8 @@ docker:
enabled: true enabled: true
credentials: credentials:
recaptcha: recaptcha:
key: "{{ CAPTCHA.RECAPTCHA.KEY }}" key: "{{ CAPTCHA.RECAPTCHA.KEY | default('') }}"
secret: "{{ CAPTCHA.RECAPTCHA.SECRET }}" secret: "{{ CAPTCHA.RECAPTCHA.SECRET | default('') }}"
accounts: accounts:
bootstrap: bootstrap:
username: "administrator" username: "administrator"

View File

@@ -31,5 +31,5 @@ docker:
port: 9000 port: 9000
credentials: credentials:
hcaptcha: hcaptcha:
key: "{{ CAPTCHA.HCAPTCHA.KEY }}" key: "{{ CAPTCHA.HCAPTCHA.KEY | default('') }}"
secret: "{{ CAPTCHA.HCAPTCHA.SECRET }}" secret: "{{ CAPTCHA.HCAPTCHA.SECRET | default('') }}"