Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Email (not name) as username

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
11 years 8 months ago #220426 by softforge
Email (not name) as username was created by softforge
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.

I am using J2.5.9 and CB1.9.

Many thanks.

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220431 by krileon
Replied by krileon on topic Email (not name) as username
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.

Please Log in or Create an account to join the conversation.

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
11 years 8 months ago #220437 by softforge
Replied by softforge on topic Email (not name) as username
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.

Is this what you intended?

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum