Detailed user notification for formhandler interceptor
Opened this issue · 1 comments
When using tw_antibot with formhandler, Tollwerk\TwAntibot\Formhandler\Interceptor throws an error when spam was detected like it should. But formhandler only shows the default "An error occured" message.
The spam notification of tw_antibot is only shown if plugin.Tx_Formhandler.settings.debug was set to 1.
So without active formhandler debug mode there is no way for the user to see if the form submission failed because of spam or because formhandler itself failed completely.
@klaus-fiedler-tollwerk Thanks for reporting. Fact is, when the spam detection is triggered, no error at all should be issued. Instead, Formhandler should fallback to the antispam template and display something like "Your acces to this form is blocked due to abuse reasons ..." (or whatever)