-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsetup.typoscript
More file actions
55 lines (49 loc) · 2.18 KB
/
setup.typoscript
File metadata and controls
55 lines (49 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
plugin.tx_jhcaptcha {
settings {
reCaptcha {
version = {$plugin.tx_jhcaptcha.settings.reCaptcha.version}
v2 {
theme = {$plugin.tx_jhcaptcha.settings.reCaptcha.v2.theme}
lang = {$plugin.tx_jhcaptcha.settings.reCaptcha.v2.lang}
size = {$plugin.tx_jhcaptcha.settings.reCaptcha.v2.size}
siteKey = {$plugin.tx_jhcaptcha.settings.reCaptcha.v2.siteKey}
secretKey = {$plugin.tx_jhcaptcha.settings.reCaptcha.v2.secretKey}
}
v3 {
siteKey = {$plugin.tx_jhcaptcha.settings.reCaptcha.v3.siteKey}
secretKey = {$plugin.tx_jhcaptcha.settings.reCaptcha.v3.secretKey}
minimumScore = {$plugin.tx_jhcaptcha.settings.reCaptcha.v3.minimumScore}
action = {$plugin.tx_jhcaptcha.settings.reCaptcha.v3.action}
}
}
}
}
# EXT:formhandler
plugin.Tx_Formhandler.settings {
markers.jh_captcha_recaptcha = FLUIDTEMPLATE
markers.jh_captcha_recaptcha.file = EXT:jh_captcha/Resources/Private/Partials/Formhandler/ReCaptcha.html
}
# EXT:powermail
plugin.tx_powermail {
view.partialRootPaths.JhCaptcha = EXT:jh_captcha/Resources/Private/Powermail/Partials
settings.setup.spamshield {
_enable = 1
methods.{$plugin.tx_jhcaptcha.settings.powermail.recaptchaId} {
_enable = 1
name = reCAPTCHA (jh_captcha)
class = Haffner\JhCaptcha\Validation\Validator\Powermail
indication = {$plugin.tx_jhcaptcha.settings.powermail.recaptchaId}
configuration.secretkey = {$plugin.tx_jhcaptcha.settings.reCaptcha.v3.secretKey}
}
}
}
[{$plugin.tx_jhcaptcha.settings.reCaptcha.version} == "2"]
plugin.tx_powermail.settings.setup.spamshield.methods.{$plugin.tx_jhcaptcha.settings.powermail.recaptchaId} {
configuration.secretkey = {$plugin.tx_jhcaptcha.settings.reCaptcha.v2.secretKey}
}
[global]
# EXT:form
plugin.tx_form {
settings.yamlConfigurations.JhCaptchaRecaptcha = EXT:jh_captcha/Configuration/Yaml/ReCaptcha/BaseSetup.yaml
view.partialRootPaths.JhCaptchaRecaptcha = EXT:jh_captcha/Resources/Private/Form/Frontend/Partials
}