....maybe there should be an option that would clean auto generated username from profile_name and profile_lastname columns, because in my language (and in lots of others) names/lastnames contains lots of non-english characters like ž,ć,č,đ,š, and its a common that usernames contains only english characters.

What dou You think?

Comments

robert castelo’s picture

Why is it a problem to have non-english characters in a password?

igrcic’s picture

not in password but in user names. thing is like this, im workin in student organization that is exchanging students all over the world. if I make automatic username with local characters, then they cant login somewhere from other country because they dont have that character....anyway its not a big deal, i can always use option to generate usernames not from their names but randomly :)

robert castelo’s picture

yes, usernames not passwords :-p

I think this would make a nice option - "convert to latin characters".

Theres a PHP class that does something like this that might be applicable:

http://www.phpclasses.org/browse/package/2650.html

I don't have time to follow this up at the moment, but is there anyone else who could take a look?

jonathan_hunt’s picture

(First, thanks for a really useful module. I just imported 2,500 users. I generated the usernames in OpenOffice since I had slightly more complex rules than the defaults, but this module was really useful.)

I did run into an issue with imported usernames containing ' (apostrophe). This isn't allowed by Drupal, but was imported ok by user_import. It would be good to run usernames through a clean up function (somewhere in _user_import_create_username() I guess.

I don't have time right now to do this myself, but may revisit this. It would be good to get some feedback on where this should be done and if there are existing drupal functions that should be invoked.

robert castelo’s picture

Version: master » 4.7.x-1.2
Status: Active » Fixed

Fixed in latest version - username is now passed through clean up function, only alphanumeric characters allowed.

Anonymous’s picture

Status: Fixed » Closed (fixed)