Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As a part of user account creation improvements and #2386793: Modify user role progression on Drupal.org we are going to install LoginToboggan on Drupal.org. The main goal of doing this is to let new users log in immediately after they register.
This has been configured and tested on a dev site.
Deployment instructions
Merge the pull request on Bitbucket to add Login Toboggan to the make file.- Enable the logintoboggan module.
- drush
vset user_email_verification 0
- Set the Welcome (no approval required) email:
Welcome to the Drupal Community, [user:name]! You have an account, Now what? Please validate your email visiting this link: [user:validate-url] You can also add some details to your profile to tell the community who you are. ** Come for the software ** Get started with Drupal: http://drupal.org/start Find a host for your website: http://drupal.org/hosting Learn more with professional training: http://drupal.org/training-services ** Stay for the Community ** Meet our community http://drupal.org/community and the Drupal Association https://assoc.drupal.org Get Involved with the project: http://drupal.org/getting-involved Find local user group near you: http://groups.drupal.org Attend an upcoming meetup, camp, or DrupalCon! http://groups.drupal.org/events Join the conversation: Get on IRC (http://drupal.org/irc) to meet the people behind Drupal Visit #drupal for general chit-chat Visit #drupal-support if you need some hand-holding Visit #drupal-contribute if you want to contribute to Drupal and see what people are working on Follow @Drupal https://twitter.com/drupal and @DrupalAssoc https://twitter.com/DrupalAssoc on Twitter. Find us on Facebook: https://www.facebook.com/pages/Drupal/8427738891 Subscribe to Drupal Mailing Lists http://drupal.org/mailing-lists and the Drupal Association Newsletter https://assoc.drupal.org Become a Drupal Association Member https://assoc.drupal.org/membership - and support community initiatives like DrupalCon, DrupalCon Scholarships, Community grants, Drupal.org infrastructure and more. We look forward to having you as a part of Drupal.
Description
Here is an export of the settings from settings.local.php:
// Login using email address.
$conf['logintoboggan_login_with_email'] = TRUE;
// Use two e-mail fields on registration form.
$conf['logintoboggan_confirm_email_at_registration'] = TRUE;
// Set password.
$conf['logintoboggan_user_email_verification'] = FALSE;
// Automatically login.
$conf['logintoboggan_immediate_login_on_register'] = TRUE;
// Present a unified login/registration page.
$conf['logintoboggan_unified_login'] = FALSE;
// Non-authenticated role.
$conf['logintoboggan_pre_auth_role'] = variable_get('drupalorg_user_email_unverified_role');
$conf['logintoboggan_unified_login']
is left from prior experimentation with this setting, and can either be ignored or added as FALSE is the default value.
Comments
Comment #1
opdaviesComment #2
tvn CreditAttribution: tvn commentedMoved and added some context to the issue.
Comment #3
opdaviesComment #4
drummI committed most of the variables to settings.php, https://bitbucket.org/drupalorg-infrastructure/drupal.org/commits/f4c858.... I expect some may move to settings.common.php as we get this running with Puppet.
I omitted
Since we don't have
drupalorg_user_email_unverified_role
set yet, and the default parameter forvariable_get
is missing.Any reason not to remove
drupalorg_user_email_unverified_role
completely, and always uselogintoboggan_pre_auth_role
?Comment #5
drummhttps://bitbucket.org/drupalorg-infrastructure/drupal.org/commits/b1e910... sets
$conf['logintoboggan_pre_auth_role']
.Let's leave out
$conf['logintoboggan_unified_login']
, keeping it at the default off.Postponing pending more work.
logintoboggan_pre_auth_role
needs to be synced to subsites before we can try enabling the module.Comment #6
drummComment #8
drummlogintoboggan_pre_auth_role
is now set up on all Drupal.org sites. To be able to assign permissions properly, the subsites do need LoginToboggan enabled. This will be done over the next few days, and we can enable it on Drupal.org early next week.Comment #9
drummLoginToboggan is now enabled on assoc, api, infrastructure, groups, localize, and qa.
It is configured on security, and ready to enable Monday.
That leaves jobs, events, and latinamerica2015, which are in-progress. We should be able to get it on Drupal.org Monday or Tuesday.
Comment #10
drummComment #11
drummThe necessary work has been done on subsites, so we can enable this later today. Tentatively 2 hours from now.
It is currently enabled on staging.
Comment #12
drummComment #13
drummComment #14
drummComment #15
drummNow deployed.