CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Add ability to automatically create Drupal account without user selection
Pages: [1]

Author Topic: Add ability to automatically create Drupal account without user selection  (Read 4528 times)

Wonder95

  • Guest
Add ability to automatically create Drupal account without user selection
February 08, 2008, 09:52:06 pm
Since any user authentication is done in Drupal (or Joomla, if you're using it instead), if you are allowing contacts to view any content on your site, then you need to have a CMS account created for each contact.  As CiviCRM works now, the only way for account creation to happen without an administrator setting up the account is to have the "Create an account" checkbox on the registration page, which is enabled by the "Drupal user account registration option" setting on the profile settings page.  Assuming the user does check that box, they then get to choose what their user name is.  You might want to specify a certain format for the user name, but there is no way to enforce it.

What would be really groovy would be if there was a set of configuration options that allowed you to do two things:

  • Create a Drupal/Joomla user account automatically without giving the user the option of doing so
  • Allow the admin to specify what data to use to create the user name.  For instance, they could specify that it be a combination of first name and last name, their e-mail address, etc.

It seems this could be done pretty easily reusing existing code.  You would just have to see if the auto create option was set, and just use the code that already is used when the user selects the "Create an account?" checkbox, and then also use the code that is used when the user enters a user name to save the user account and use the predetermined option.

I'm working pretty hard on getting my first CiviCRM site out the door, and if I have time when I'm done I'll try to come back around to this, but if anyone else has a desire to add this, I think it would be very useful.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add ability to automatically create Drupal account without user selection
December 05, 2008, 12:26:32 am
Quote
Create a Drupal/Joomla user account automatically without giving the user the option of doing so
We made few improvement for this feature in v2.2, which allows admin to set CMS user creation compulsory.
check http://issues.civicrm.org/jira/browse/CRM-3788

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Add ability to automatically create Drupal account without user selection

This forum was archived on 2017-11-26.