I wish to change the setup to have email be the only required field for registration and a "display name" field for showing a custom name (instead of the email address) on the site. What different approaches are there to this? What would YOU recommend and why?

Comments

apsivam’s picture

tobiassjosten’s picture

That's excellent! Thank you.

rickn’s picture

Out-of-the-box registration requires an arbitrary username assigned by the user and a valid email address.

I use the Email Registration module, which assigns a user name based on the user name part of the email address. Subsequent users who have the same name are numbered sequentially.

For example, "johndoe@exampleA.com" would be assigned username "johndoe", "johndoe@exampleB.com" would be assigned "johndoe001" and so forth. "Change own username" privilege allows a user to subsequently change their username in "My Account".

Administer / User management / Profiles allows custom fields to be added to members' profiles. The properties of each custom field can be edited to require it at registration time, make it private and invisible to everyone, and so forth.

tobiassjosten’s picture

Thank you for this elaborate description on how it works. I tried with the module and it works great, aside from some things I'd gladly take feedback on.

First of all the email sent out referred to me as "xGhwA9GrKH". That's the username it gave me. When I logged in, using my email and the password sent to me, my username was as you mentioned, "johndoe" in the case of johndoe@domain.com. How can I fix the problem with the mail being sent? Is that perhaps something overlooked in the module?

The second problem is that the Username field is still there, when I go to edit my profile. I believe I have seen, somewhere, and option to edit these fields but is it safe to remove Username? Also, how can I add a "Display name" field and make it show as the username? Simply rename the Username field perhaps?

EDIT: Another thing I noticed is that the email sent out adds trailing spaces to both the username and password. This is something I'd definitely like to change because I'm certain some users will come to complain about not being able to log in because of this.

rickn’s picture

There is an active thread on these issues at http://drupal.org/node/133038, I suggest continuing from there.

Christopher Herberte’s picture

You will probably want to change the welcome e-mail (Administer -> User Management -> User Settings) and replace instances of the token !username with !mailto

phponwebsites’s picture

How to access user settings page?

DhirendraGrazitti’s picture

You can access user settings page in back end

(1) configure user registration, user email, and user picture settings on the Account settings page (Administer > Configuration > People > Account settings) in Drupal 7, and (Administer > Settings > User) in previous versions.

(2) configure access permissions at (Administer > People > Permissions) in Drupal 7, and (Administer > Access control) in previous versions.

Now please see also this module https://www.drupal.org/project/user_settings_access

Thanks

Dhirendra Kumar

Tuckshop’s picture

Thanks for great Information

kmukyiv’s picture

AlexBorsody’s picture

It's stupid that we have username at all, The first and last name or email should always display. Core should remove username completely and replace it with email.

kazlauskis’s picture

Agree. The username should be optional.

NioMarvin63’s picture

Thanks for this useful information, I just wanted to change it on auction streaming so that I use email instead of username when registering. I used the information.