I would like to choose Firstname as a username. Sometime people have 2 words in their FirstName. It looks like for multi word FirstName, all will be used as a username with spaces allowed. Isn't the following function not allowing that?

function _user_import_sanitise_username(&$username) {
// username cannot contain multiple spaces in a row
$username = preg_replace('/[ ]+/', ' ', $username);
....

}

Comments

mcsnolte’s picture

Indeed, and spaces shouldn't be allowed anyway. I recommended a fix here: http://drupal.org/node/219023#comment-776837

robert castelo’s picture

Status: Active » Fixed

Fixed in 5.x-2.0-beta1, please re-open this issue if you can still replicate the bug.

Status: Fixed » Closed (fixed)

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