Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-1633

Option to Create a Drupal User from a Profile

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      this issue is as per discussion on civicrm-dev list
      http://www.nabble.com/Option-to-Create-a-Drupal-User-from-a-Profile---Contribution-Page-tf3256510s15986.html

      1. Add new setting for Profiles : "Create CMS User"

      2. If this is enabled, the Profile form fieldset is "enhanced" as
      follows when the form is displayed AND the visitor is NOT logged in to
      Drupal:

      • Add checkbox: "Create an account?"
      • If checked, display fields for entering Username, Password,
        Confirm Password

      (The profile must include an Email Address, or this feature is suppressed)

      3. When the profile is submitted, we would invoke the same Drupal API
      used when a new user registers "normally". This should mean that "post
      user creation processes" configured for a given site would be
      triggered (e.g. sending welcome emails, etc.)

      check drupal api: http://api.drupal.org/api/HEAD/function/drupal_execute

      4. Error Handling -

      • We need to handle the case where a User with this Username and/or
        Email already exists. We could either return an error message and not
        submit the profile form (tell them to login, etc.). Or, we could
        bypass creating the account. If we bypass creating the account, we
        mIght need to tell them that a new user account was NOT created
        because an account already exists...and to use their existing login...

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              kurund Kurund Jalmi
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: