When I set this setting to yes, a password is emailed to the user on registration, great. However, this password is only 8 characters long and we want it much longer.
Actually, we don't want a password at all because we are developing an alternative form of authentication as a Joomla plugin so we cant have the password being the weakest part of the system.
I have tried disabling the password field at registration and setting "Autogenerate random registration password" to No but it still autogenerates a random password.
So, how can I get CB to stop generating a random password when the password fields are disabled at registration?
You can't stop password generation. A password is required. If you don't allow the user to supply one then CB will create one. If you're using an alternative authentication it shouldn't matter. Simply let it generate one and just don't provide it to the user. At any rate to make it longer you'll need to adjust setRandomPassword within administrator/components/com_comprofiler/library/cb/cb.tables.php.
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.
I have a site that uses ldap to allow people to login. It creates an account in Joomla and CB and the password field in the user table is blank and there have been no problems. So actually Joomla does work fine without a password and we just don't want a password as an alternative login mechanism as it will be the weakest part.
Thanks for the file reference, I may just increase it to a ridiculous length but first I will try deleting the password with CB Auto Actions after registration.
Out of interest, when registering with a social network through CB Connect with autogenerate on, it emails you the encrypted passwords directly from the database!