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).

CommentFileSizeAuthor
name_eq_email.patch3.22 KBgabriel.

Comments

gabriel.’s picture

Status: Active » Needs review
moshe weitzman’s picture

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

Christopher Herberte’s picture

Status: Needs review » Fixed

committed to HEAD

Anonymous’s picture

Status: Fixed » Closed (fixed)

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