Hello,

Thank you for this awesome module! It is great to be able to have users register/log-in with their email addresses.

I was wondering if it is possible to create an email confirmation box, so essentially the new user will have to type their email in twice when registering, and their password twice.

I tried using LogintoBoggan but the setup of that module automatically logs in the user when the new user chooses their own password in the registration process. I would like new user to register with email & password, go to their personal email to press registration confirm link, then be logged into the website.

I would really appreciate any help on this - thanks!

CommentFileSizeAuthor
#13 583152-email_confirmation_option.patch3.87 KBpcambra
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Category: support » feature

My perspective is that this is not something we should include in the email_registration module. It is best handled by other modules that exist specifically for this purpose.

Christopher Herberte’s picture

Agreed, this should be the functionality of a separate project. This functionality may be useful where username is entered. Takers?

greggles’s picture

Status: Active » Closed (works as designed)

If Chris agrees, I think we should call this by design.

jboeger’s picture

For what it's worth... my client (sells newsletters, wants trial accounts) asked for this today.

Instead of username, enter in the email twice.

greggles’s picture

Status: Closed (works as designed) » Active

Regarding the state of the issue, maybe we should reconsider (I think we should).

Beyond that, it's not worth much unless you want to write the patch or sponsor someone else to.

chrisshattuck’s picture

Hi folks,

The LoginToboggan module has an option for adding a second e-mail field during the registration process:

http://drupal.org/project/logintoboggan

Check it out!

greggles’s picture

It does, but these two modules don't always work well together and, even if they did, logintoboggan has a lot of other features that people may not want.

Bilmar’s picture

I agree with greggles.

I feel the Email Registration module is nice and simple without the additional features which is great, but if it is meant to focus on users registering with only an email address than I think it would be great to have a checkbox in the settings to require a confirmation of the email address.

I would prefer to keep modules to a minimum and hope Email Registration module will allow full control over the registration process so that logintoboggan will not be needed only for the email confirmation box.

Thanks!

YK85’s picture

subscribing - i was wondering if there has been any further progress in this new feature?
thanks!

Lbob’s picture

Hello, Has this functionality been implemented?

Lbob’s picture

is there a solution for what appears to be a basic functionality => check if 2 email fields are similar?

Lbob’s picture

up. Help is deeply appreciated :)

pcambra’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Needs review
FileSize
3.87 KB

Here's a patch for D7

andypost’s picture

Chris asked me to not commit this and #1291908: Keep the email login entered by the user so it can be validated
So let's discus it for 7.x-1.1

greggles’s picture

Marked #1029816: Confirm e-mail address as a duplicate.

I apparently go back and forth on whether I think this is a good idea or not :)

greggles’s picture

Status: Needs review » Needs work

This patch changes a lot of style issues in addition to the new feature. The style issues have been fixed elsewhere, so it no longer applies.

I still wonder whether this problem should be fixed in this module at all. There's a lightweight solution to the problem in http://stackoverflow.com/questions/8728680/drupal-7-confirm-email-address

I would imagine a module that specifically just adds this one feature would be a good idea.

IWasBornToWin’s picture

Issue summary: View changes

just downloaded 7 dev. I do not see settings for this module that will allow email confirmation.

I'm very surprised Drupal believes people are perfect and does not, at core, DEMAND email confirmation. They apparently do realize this for passwords?

So, of course, I'm even more surprised this module does not confirm emails. It's half of the use of your module. Who wants a heavy login toboggon for something so simple, and expected?

IWasBornToWin’s picture

I see this solution. Do I have to create my own module or how do I apply this code/solution?

Thanks

/**
 * Implements hook_menu().
 * Note: You can define your own menu callback optionally.
 */
function foo_menu() {
  $items['foo-signup'] = array(
    'title' => 'Create new account',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('user_register_form'),
    'access callback' => 'user_register_access',
    'type' => MENU_CALLBACK,
  );
  return $items;
}

/**
 * Implements hook_form_FORM_ID_alter().
 */
function foo_form_user_register_form_alter(&$form, &$form_state, $form_id) {
  $form['account']['mail_confirm'] = array(
    '#type' => 'textfield',
    '#title' => t('Confirm e-mail address'),
    '#maxlength' => EMAIL_MAX_LENGTH,
    '#description' => t('Please confirm your e-mail address.'),
    '#required' => TRUE,
  );
  $form['#validate'][] = 'foo_user_register_form_validate';
}

/**
 * Implements validation callback.
 */
function foo_user_register_form_validate(&$form, &$form_state) {
  if ($form_state['values']['mail'] != $form_state['values']['mail_confirm']) {
    form_set_error('mail_confirm', 'The email addresses must match.');
  }
}
greggles’s picture

Status: Needs work » Closed (works as designed)

I don't think this feature makes sense inside this module.

alamp’s picture

#18 works fine for me.
@IWasBornToWin, thanks for the patch
@greggles, thanks for the module.

AaronBauman’s picture

necroposting to say i found this module which does the job and appears to be compatible
https://www.drupal.org/project/issues/reg_confirm_email