I know that logintoboggan makes it possible to log in using either the username or email address, which is very nice... but what would be really neat is for users of a site to *only* need an email address to register and log in.

This way a person would only need to enter their email address when they register. There is no need for them to even think up or remember a username. Their email address *is* their username.

Quite a lot of sites work like this - it would be great if Drupal had this feature too.

Comments

hunmonk’s picture

Assigned: Unassigned » hunmonk
Status: Active » Fixed

the standard drupal login system does allow you to use an email address as a username. LT was preventing this when the 'login using email' setting was enabled, to prevent one user from using an email address as a username that another user had already taken as an email. i rewrote that validation so that LT will now allow an email address as a username in that case, as long as it's not already taken as an email address by another user.

it's more than likely possible to streamline the process more by eliminating the username field altogether and performing some backend database magic, but i don't have any interest in coding that ATM, since this patch does implement the same functionality. feel free to reopen this issue w/ a patch for that if you like... :)

patch applied to 4.7 and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)