I am building a site which doesn't need a username so I have removed it from the registration and set login with email, this works great!
However, when a username is not entered at registration, the name of the user is used for the username. This seems sensible at first but it stops 2 people with the same name from registering as there is validation which tells the second person "User name in use"!
As we know, people share names so this will not work in the long run. What would be much more sensible would be to use the email address as the username as this is globally unique.
Another option would be to remove the validation from username if it is off but this would then allow duplicate usernames which could cause problems in Joomla.
Have I missed a setting or is this a real issue? I'm happy to do a quick hack for now but I think this needs to be addressed properly.
Working as intended, if username is missing it'll use name, if name and username is missing it'll use email. You can use CB Auto Actions with after registration trigger in a Field action to change username to
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
OK, it may be working as intended but I am saying that this approach is flawed.
So basically, if you allow people to register with just a name and email, another person with the same name cannot register without changing their name.