Remove extra value from form submission

Created on 17 July 2019, over 5 years ago
Updated 20 June 2024, 10 months ago

Problem/Motivation

When honeypot protection is added to a form, the extra form elements are added. On submission, they remain in the form state values even if they were (correctly) left empty. This can cause problems when form submission handlers use all form values and do not expect the honeypot form element.

Proposed resolution

Remove the empty honeypot field from the form state, if its validation succeeded.

Remaining tasks

Review. I don't think we need a test for this.

✨ Feature request
Status

Postponed: needs info

Version

2.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany ckaotik Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024