Skip to Content Skip to Menu

Field Validation

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 382
  • Thanks: 36
  • Karma: 2
  • Add-ons
4 years 9 months ago #316036 by liaskas
Field Validation was created by liaskas
Hello,

after searching for days for a solution on how to allow "&" in username field i am stuck!

I read that this is because of joomla username field restrictions
I read that this was solved on joomla next release.
I have tried the hundreds of regex codes that i found.
I have tested these regex codes on some regex testing sites proposed here.

The result is this...

I can enter $, #, @, whatever symbol i want in my username field, but not the "&".

By default there is a "Registration Forbidden Words" field in backend with the following value: http:,https:,mailto:,//.,<a,</a>,&#

Removed the "&" from the badwords value, but nothing changed!

I have seen several posts regarding username validation in the forum, but not a clear answer, so please tell me...

Is the forbidden words the reason of my problem?

If not...

What is the right regex code to allow letters, numbers, blank space and & un username field?

Thank you in advance...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
4 years 9 months ago #316045 by krileon
Replied by krileon on topic Field Validation
I do not recommend using anything but alphanumeric characters in usernames. At any rate CB can not bypass Joomlas username or password validations. We've no limitations on username beyond those configured in the validation settings. Any further validation would be enforced by Joomla. Joomla does not allow for < > \ " ' % ; ( ) & characters in usernames.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum