× Joomla Facebook Connect support forum

Topic-icon Bug enforcing limits on self-chosen username?

Active Subscriptions:

None
15 years 3 months ago #7525 by guero
Hello,

When using the option of Full Joomla User in the User Creation of JFBConnect, it appears the limit on the username (such as max length) as set through the CB Field manager are not enforced. I have a 12 char limit set there which is enforced when trying to register users using CB Login (and the Joomla backend). However, I can enter usernames with more then 12 chars when using JFBConnect. It would be great to bring this to the registering user's attention and have him choose a username that fits with the limitations. Is this a known issue or something I am doing wrong somewhere?

Thank you,
Oliver

PS I haven't actually tested if a similar issue holds for choosing the password. If it does, then it would be nice if JFBConnect enforced the CB limitations on that as well.
The topic has been locked.
Support Specialist
15 years 3 months ago #7532 by alzander
We currently don't check that option in CB since, well, CB almost has their own whole CMS, it's tough to check and respect each of their options. What I would recommend is the following quick and easy change to our registration form. On the /components/com_jfbconnect/views/loginregister/tmpl/default.php file, find the input field for the username (on line 48) and add the following attribute:
maxlength="16"

I know that's not perfect, and I've taken a note of the request, but I want to get you something to get you up and running as soon as possible instead of waiting for a fully automated solution that may not be available for a while.

Please let us know how that works out, if you hate it, or need anything else.

Thanks again!
The topic has been locked.