in2code-de / powermailrecaptcha

Google recaptcha for powermail 3
10 stars 13 forks source link

Configurable error message #13

Open featdd opened 5 years ago

featdd commented 5 years ago

After I migrated from "rh_recaptcha" I encountered the problem of a missing custom message like "Please solve the Captcha!" instead of the default spam faktor message.

I don't see a possibility to determine the spamcheck failed because of the recaptcha...

This may leads to a conceptional issue up to powermail itself, would be a great feature to alternatively define custom validation messages yourself for fields in general.

Greetings Daniel

geri777 commented 5 years ago

This is my workaround:

plugin.tx_powermail._LOCAL_LANG.default.validationerror_spam_details = Please click the Captcha element at the bottom of the form and submit the form again.
plugin.tx_powermail._LOCAL_LANG.de.validationerror_spam_details = Bitte klicken Sie das Captcha Element am Ende des Formulars und senden Sie das Formular nocheinmal ab.

It's not really what I want, because it still shows a Spam warning with 92%, but at least there is a message indicating what's wrong as well. However this message will show whenever there is spam detected. Works for most cases, but it's just a workaround - I would prefer a custom validator - not utilizing spamshield. Because custom validators can have custom messages - spamshield methods can't.

schuberttobias commented 4 years ago

+1 for @geri777 s feature request @geri777 Thanks for the workaround.

sbusemann commented 5 months ago

https://projekte.in2code.de/issues/64175