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

Add Config Setting to Validate Required User Custom Fields on Public Registration Forms #4229

Open
medoingthings opened this issue May 7, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@medoingthings
Copy link

commented May 7, 2019

Description

In Craft 2 required user custom fields got validated on public registration forms. This has changed in Craft 3 to the surprise of at least some users, including me. Getting the old behavior back is pretty cumbersome and involves duplicating the Users Controller from Craft, just to remove a conditional.

I’m sure there is a good reason for this, but it would be great if this could be a config setting for general.php.

Steps to reproduce

  1. Add custom fields to the users field set, make it required.
  2. Create a custom front end registration form.
  3. Fill out the registration form.

The form submits successfully, even if the required fields weren’t filled.

Additional info

  • Craft version: Craft Pro 3.1.25
  • PHP version: 7.1.12
  • Database driver & version: MySQL 5.6.38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.