forked from in2code-de/powermailrecaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_typoscript_setup.txt
55 lines (47 loc) · 1.67 KB
/
ext_typoscript_setup.txt
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_powermail {
view {
partialRootPaths {
10 = EXT:powermailrecaptcha/Resources/Private/Partials/
}
}
settings.setup {
captcha {
sitekey = {$plugin.tx_powermailrecaptcha.sitekey}
javascript = {$plugin.tx_powermailrecaptcha.recaptcha.javascript}
htmlclass = {$plugin.tx_powermailrecaptcha.recaptcha.htmlclass}
}
spamshield.methods {
# Add recaptcha spamcheck
10 {
_enable = 1
# Spamcheck name
name = Google Recaptcha
# Class
class = In2code\Powermailrecaptcha\Domain\Validator\SpamShield\RecaptchaMethod
# if this check failes - add this indication value to indicator (0 disables this check completely)
indication = 10
# method configuration
configuration {
secretkey = {$plugin.tx_powermailrecaptcha.secretkey}
verificationuri = {$plugin.tx_powermailrecaptcha.recaptcha.verificationuri}
verificationresponsename = {$plugin.tx_powermailrecaptcha.recaptcha.verificationresponsename}
}
}
}
}
_LOCAL_LANG.default.validationerror_spam_details = Please solve the Captcha.
_LOCAL_LANG.fr.validationerror_spam_details = Veuillez résoudre le Captcha SVP.
_LOCAL_LANG.de.validationerror_spam_details = Bitte lösen Sie das Captcha.
}
["{$plugin.tx_powermailrecaptcha.provider}" == "hcaptcha"]
plugin.tx_powermail.settings.setup {
captcha {
javascript = {$plugin.tx_powermailrecaptcha.hcaptcha.javascript}
htmlclass = {$plugin.tx_powermailrecaptcha.hcaptcha.htmlclass}
}
spamshield.methods.10.configuration {
verificationuri = {$plugin.tx_powermailrecaptcha.hcaptcha.verificationuri}
verificationresponsename = {$plugin.tx_powermailrecaptcha.hcaptcha.verificationresponsename}
}
}
[END]