Hi,
it would be nice with this module to have the username on the user registration form.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | Allow_username_on_the_registration_form-2214225-24.patch | 2.53 KB | ronino |
Hi,
it would be nice with this module to have the username on the user registration form.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | Allow_username_on_the_registration_form-2214225-24.patch | 2.53 KB | ronino |
Comments
Comment #1
adwuk commentedI have done this by simply editing email_registration.module and modifying the function email_registration_form_user_register_form_alter.
change
to
This will ask the user to enter their user name on the registration form, but for password reset, login etc the email address is used. It helps us as we approve some members to have increased access to our website if they are known club members.
I think that it would be worthwhile adding this as a configuration option, and once I figure that part out, I will submit a patch.
Comment #2
user654 commented.
Comment #3
gregglesI could swear this was already possible just by entering your name into the email field. If you change the label on the field that should be good enough. The README.txt of the module explains how to change the label in your settings.php file.
Comment #4
adwuk commentedThe point, for me at least, is to have both the email and user name field visible for registration purposes. I don't need it for login or password reset though. If there is a better way to progress then no issues - this request sat with no progress for 9 months, so I figured there wasn't.
Comment #5
gregglesI see. Well, that seems like it could be an optional feature. Especially if you include tests for it :)
Comment #6
adwuk commentedSo here are my changes. Don't know how to build in tests, but maybe it will serve as the basis for someone to improve.
Comment #7
System Lord commentedThis is a much needed change for my use. I assume this patch will work for 7.1.2 as well? Perhaps manually?
Comment #8
System Lord commentedSeems to work fine on 7.1.2. I patched it manually.
Thanks for this!
Comment #9
System Lord commentedI did change t('Your name') to 'Display name' to keep it consistent with the
function email_registration_form_user_profile_form_alterComment #10
henryhu commentedThanks adwuk, patch is working for me.
Comment #11
knalstaaf commentedI tried this on a 7.x-1.3 and the patch doesn't seem to do the job anymore.
Don't want to push this issue to a philosophical discussion but shouldn't this be an option (configurable by admin) by default?
Interesting D8 discussion in that perspective: #111317: Allow users to login using either their username OR their e-mail address
Comment #12
sadashiv commentedHi,
I modified the patch provided previously, I guess we don't need to create a new menu just for one configuration so added this configuration under admin/config/people/accounts
Thanks,
Sadashiv.
Comment #13
weri commentedI reviewed and tested the patch #12. It woks as expected and I hope this get committed in the next release.
Comment #15
Chetna_Negi commented#12 worked beautifully, thanks @sadashiv
Comment #16
ronino commentedI like patch #12, but I'd expect the username field to be optional, at least optionally ;-). Otherwise checking the checkbox literally turns off the functionality of this module for the registration form: to register with an email address only while generating a random username.
You can achieve this with extra validation and submit handlers:
What do you think?
Comment #17
joekersHere's a patch for 8.x-1.x.
Comment #18
dimilias commentedThis should move to a new issue. The whole issue is set for 7.x and now even your patch appears for 7.x :/
Comment #19
dimilias commentedComment #20
joekersAh sorry I thought I'd just post a patch in this issue as it's the same for D8 - will create a new one now and post it there instead.
Comment #21
drupalfan2 commentedIs this patch still necessary for latest Drupal 7 version?
Comment #22
andypostThis issue for d7, d8 one is #2927109: [D8] Allow username on the registration form
this functionality is critical so must be covered with test (could be same as for d8)
Comment #23
andypostComment #24
ronino commentedUpdated patch #12 to work with the latest version.
Comment #25
bluegeek9 commentedDrupal 7 is End of Life. We recommend upgrading to a supported version of Drupal.