In beta9 new checks that were added to _ldap_authentication_user_login_authenticate_validate() break integration with email registration module:
// Email registration module populates name even though user entered email
if (!empty($form_state['values']['email'])) {
$entered_name = $form_state['values']['email'];
$authname_drupal_property = 'mail';
}
// $authname is the name the user is authenticated with from the logon form // patch 1599632
$authname = $entered_name;
// ISSUE HERE. Email registration module fills ['email'] field, but this code checks
// existense of ['mail'] field, that does not exists! So authentication by email address does not work.
if (empty($form_state['values']['pass']) || empty ($form_state['values'][$authname_drupal_property])) {
return FALSE;
}
I resolve this issue temporary for my site:
// Email registration module populates name even though user entered email
if (!empty($form_state['values']['email'])) {
$entered_name = $form_state['values']['email'];
$authname_drupal_property = 'mail';
// Manually fill ['mail'] field.
$form_state['values']['mail'] = $form_state['values']['email'];
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2779945-email-registration.patch | 1.11 KB | larowlan |
Comments
Comment #2
larowlanComment #4
larowlanFixed and rolled a beta 10, thanks for reporting