There is code in the LDAP Provisioning module[1] which you could use to do this, though the whole module is only really useful if you're going to be tying into LDAP for authentication. Perhaps the user name assigning part could be extracted out?
Cheers, Dan
On Thu, Mar 13, 2008 at 8:59 AM, Larry Garfield larry@garfieldtech.com wrote:
Hi folks. I've a question that's come up on a number of my sites now. I'd like to be able to disallow users from selecting their own usernames, ever, even on signup. Instead, I want to expose various profile fields (or custom fields via form-alter if necessary) and then base the username off of that. E.g., first intial and last name, all lower-case. Does anyone know of an existing module or mechanism for that, or a common pattern that could be turned into a module?
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson -- [ Drupal support list | http://lists.drupal.org/ ]