Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Modify username

Aloittaja codebirth, helmikuu 22, 2009, 08:21:38 AP

« edellinen - seuraava »

codebirth

Hello,

Is possible to allow users to modify their username? I don't mean the display name but the username they login with.

Thanks!

phpMyTony

Yes, go to their profile, then Account settings, then go to where their username is and press change.

codebirth

I know I can modify their username. What I want to know if there is a way to allow users to modify their own username.

Thanks!

phpMyTony

Ohhhhhhh. No, I dont think so.

~Killer~

What version of SMF are you using? I do know there is a default item in SMFShop that allows you to do that, maybe you can look into the code it uses and take it from there.

codebirth

I'm using 2.0 RC1. Will take a look into SMFShop.

Thanks!

H

There is no built in method to do this. This is because the username is tied to the password and keeping it different from the display name is also an intended security feature
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

codebirth

Oh I see. My problem is that I'm importing users from another system (not a forum) where they login with their email address and password and I will auto-generate a numeric username for them, but it would be nice if they would be able to change the username they login with. But if not, it won't be a big problem anyway.

Thanks!

H

That certainly makes sense :)

As an admin, you could manually change it for them, although you'd also need to change their password (or have them manually reset it, with the forgot password tool).

Alternatively you could request a mod, allowing users to change their own usernames (Mod Requests)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

codebirth

#9
Thanks. Another option I was considering is to add some custom code that would ask them for a username on their first login, since their password will not be tied with the username yet (the password I'm importing is simply encrypted with MD5) so there's no need to allow them to change their username later. I still need to look at it deeper.

greyknight17

codebirth, is this issue resolved now? If not, we can move this over to the Mod Request board for you or you can manually update their names using your administrator account.

codebirth

#11
Yes greyknight17 , I solved it but not the way I though in the beginning. I was importing +11,000 users so manually updating their username was not an option. I made a MOD so they have to login with their email address / password like in the old system and now the username has no utility on that board, which is not a problem anyway. They can manually change their "default" display name if they want.

Thanks for your interest.

Advertisement: