Skip to content

Commit 2959a30

Browse files
committed
feat(anti spam): switch to altcha
1 parent 85aafdc commit 2959a30

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
huluti_altcha:
2+
enable: '%env(bool:ALTCHA_ENABLED)%'
3+
hmacKey: '%env(ALTCHA_SECRET)%'
4+
floating: false
5+
6+
when@test:
7+
huluti_altcha:
8+
enable: false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
karser_recaptcha3:
2+
site_key: '%env(RECAPTCHA3_KEY)%'
3+
secret_key: '%env(RECAPTCHA3_SECRET)%'
4+
score_threshold: '%env(float:RECAPTCHA3_SCORE_THRESHOLD)%'
5+
enabled: '%env(bool:RECAPTCHA3_ENABLED)%'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
imports:
2+
- { resource: "@MonsieurBizSyliusAntiSpamPlugin/Resources/config/config.yaml" }
3+
4+
services:
5+
# Add the "monsieurbiz_anti_spam.quarantineable" tag on the quarantineable entity (not autoconfigure the entity…)
6+
App\Entity\Customer\Customer:
7+
tags: ['monsieurbiz_anti_spam.quarantineable']
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
monsieurbiz_sylius_anti_spam_admin:
2+
resource: "@MonsieurBizSyliusAntiSpamPlugin/Resources/config/routes/admin.yaml"
3+
prefix: /%sylius_admin.path_name%
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"bundles": {
3+
"MonsieurBiz\\SyliusAntiSpamPlugin\\MonsieurBizSyliusAntiSpamPlugin": [
4+
"all"
5+
]
6+
},
7+
"copy-from-recipe": {
8+
"config/": "%CONFIG_DIR%/"
9+
},
10+
"env": {
11+
"RECAPTCHA3_SCORE_THRESHOLD": 0.5,
12+
"RECAPTCHA3_ENABLED": false,
13+
"ALTCHA_ENABLED": true,
14+
"ALTCHA_SECRET": "CHANGEME"
15+
}
16+
}

0 commit comments

Comments
 (0)