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 |
Jump to:
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).
| Attachment | Size |
|---|---|
| name_eq_email.patch | 3.22 KB |

#1
#2
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
committed to HEAD
#4
Automatically closed -- issue fixed for two weeks with no activity.