Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Configuration >> Account settings >> Manage Fields >> Add new field and mark it as ":Required"
Log out as administrator;
Create new user account;
The "required" fields are not requested by Drupal;
it should not be possible to create a new account without required fields being mandated by Drupal and supplied by the user requesting the new account.
Comments
Comment #1
fagoAgreed, this is inconsistent. Once the administrator e.g. wants to edit such an account, he would have to provide values for the required fields then. That's for sure not intuitive that way.
Comment #2
fagosee #501408: Display user fields on registration form.
Comment #3
fagore-opend as #501408: Display user fields on registration form is considered a new feature and so d8 stuff. This issue still appears in d7 though.
Read #1 for what's the problem with the current situation. I ran over this with content profile too. Urging administrators to fill out user-data they cannot or might not know is just unacceptable for most production sites.
Comment #4
fagoSteps to reproduce:
* add an required field to the user account
* register as a new user, the account now misses the required field value
* as administrator, try to edit the account. You cannot without providing the missing required field value.
Comment #5
lotyrin CreditAttribution: lotyrin commentedI really don't see a way to solve this without #501408: Display user fields on registration form, which already has a patch. Perhaps we should reclassify it, and reconsider pushing it off until D8?
Comment #6
EvanDonovan CreditAttribution: EvanDonovan commentedI would have to agree with lotyrin on this one. I don't think that the patch on #501408: Display user fields on registration form is favored by yched or the others who work on Field API, though.
Comment #7
EvanDonovan CreditAttribution: EvanDonovan commentedThere is a new patch on #501408: Display user fields on registration form, please review.
Comment #8
PieterDCWhy wouldn't it be favored (by those who work on Field API) ?
Ps: yched just posted an extended patch.
Comment #9
EvanDonovan CreditAttribution: EvanDonovan commented@PieterDC: I was talking about the earlier patch, which is why I commented again to say that the new patch is the one written by yched.
Comment #10
chx CreditAttribution: chx commentedI am closing this as a duplicate of the other one because #501408-96: Display user fields on registration form says
Comment #11
PieterDCYou're right chx.