diff --git a/logintoboggan.module b/logintoboggan.module index 342a4dbc85a04d6860cd4495de5dcc03e9c70bdd..494cd462b33d7b6e2f7d5cfb806ab5ee9179e345 100755 --- a/logintoboggan.module +++ b/logintoboggan.module @@ -567,7 +567,7 @@ function logintoboggan_user_register_validate($form, &$form_state) { } //Check to see whether our e-mail address matches the confirm address if enabled. if (variable_get('logintoboggan_confirm_email_at_registration', 0) && isset($form_state['values']['conf_mail'])) { - if ($form_state['values']['mail'] != $form_state['values']['conf_mail']) { + if (trim($form_state['values']['mail']) != trim($form_state['values']['conf_mail'])) { form_set_error('conf_mail', t('Your e-mail address and confirmed e-mail address must match.')); } }