arshidkv12 / contact-form-cfdb7

Database addon for Contact Form 7 WordPress plugin. Save and manage Contact Form 7 messages.
https://ciphercoin.com
GNU Affero General Public License v3.0
13 stars 28 forks source link

write values only to database if validation passed #31

Closed revoltek-daniel closed 2 years ago

revoltek-daniel commented 2 years ago

write values only to database if validation status is not "validation_failed"

arshidkv12 commented 2 years ago

It is already checking validation. Check contact form 7 complete source code and hooks.

revoltek-daniel commented 2 years ago

but it does not respect other hooks, so if another hook in the before_sent_mail set validation to false or sets the aborted attribute to true, the values are written to database.

arshidkv12 commented 2 years ago

Before send hook call if your validation is successful. Please check contact form 7 source code.

On Wed, 8 Jun, 2022, 12:34 pm Daniel, @.***> wrote:

but it does not respect other hooks, so if another hook in the before_sent_mail set validation to false or sets the aborted attribute to true, the values are written to database.

— Reply to this email directly, view it on GitHub https://github.com/arshidkv12/contact-form-cfdb7/pull/31#issuecomment-1149541546, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT5Y5OOVNKKFEDFB62V5WLVOBAXLANCNFSM5UB2OQSQ . You are receiving this because you modified the open/close state.Message ID: @.***>