No Username but firstname and familyname
-
I remember @julian mentioned some time ago we should allow users to login via either email or username - definitely something we wouldn't mind added to the core instead of a plugin
As for showing the user's full name instead of their username, I would just modify the register.tpl template to add "First name" and "Last name" input boxes, and make "username" a hidden input. When the user hits submit, I would first validate and then concatenate first name and last name and save it in the username hidden input, the backend will take care of the rest as usual
In your language file, change "username" to "full name" everywhere. I think that's it
-
Thanks for reply @psychobunny
Your solution is interesting but how do i do, if two people have the same first name and last name?
Because if i concatenate both to make the username, we can have a problem.I think we can't use first name and lastname as a KEY, but email can be the new key.
Thanks for your help
-
That's a good point, I didn't think of that. "Your name has been taken, try a different name" LOL
-
For the most part, I am against enforcing "firstname lastname", because it does not actually enforce anything. I could still put down "myfake username" as my first and last name.
I feel this is more of a community issue, and that you should just write a note in the MOTD encouraging users to sign up with their full names, and encourage existing users to change their usernames to their full name.
-