Ability to set username field in database to be equal to email address

gabriel. - May 11, 2008 - 00:31
Project:Email Registration
Version:5.x-1.3
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:closed
Description

instead of taking the fragment of the user's email address and making that the username, why not just make the email address itself the username?

While I recognize that a raw email address may not be pretty, it is guaranteed to be unique for every user.

You can then override how the username is displayed by creating a function called phptemplate_username() to intercept theme_username() if you want to change how it gets rendered on-screen.

I've created a patch that allows for this feature to be enabled via an administration page (in case you prefer to use the "default" username generation method).

AttachmentSize
name_eq_email.patch3.22 KB

#1

gabriel. - May 11, 2008 - 00:44
Status:active» needs review

#2

moshe weitzman - May 22, 2008 - 14:49

i think sometimes contrib modules show username without theme('username') so we would end up exposing the email address. perhaps this could be optional.

#3

Chris Herberte - October 2, 2008 - 08:48
Status:needs review» fixed

committed to HEAD

#4

Anonymous (not verified) - October 16, 2008 - 08:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.