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.
By risingtiger on
I had the need to sign up users without them having to check their email before continuing. This had been solved in version 4.6, though it broke in version 4.7
The hack is a two line addition within the user.module file.
do a search for this line:
drupal_set_message(t('Your password and further instructions have been sent to your e-mail address.'));
Add:
user_authenticate($name, $pass);
header("Location: " . url('user/'. $account->uid .'/edit', NULL, NULL, TRUE));
just before.
Warning! This has not been debugged! Use at your own risk!
I feel strongly that drupal needs an administration toggle built in that allows for requiring the email loop or not upon signup. If there is interest in this please let me know. You can contact me via my profile.