Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable error message #13

Open
featdd opened this issue Jan 7, 2019 · 3 comments
Open

Configurable error message #13

featdd opened this issue Jan 7, 2019 · 3 comments
Labels
Milestone

Comments

@featdd
Copy link

featdd commented Jan 7, 2019

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
Copy link

geri777 commented Jan 31, 2019

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
Copy link
Contributor

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

@sbusemann sbusemann added this to the 6.0 milestone May 28, 2024
@sbusemann
Copy link
Collaborator

@pixeldesu pixeldesu modified the milestones: 12.0, 13.0 Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants