User create fails while generating a username with a whitespace
| Project: | LDAP provisioning |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
When a user signs up for our community website it is stored in our OpenLDAP server. The user needs to fill in his first and last name and i have disabled the custom usernames and set a username template like this: "%f.%l".
But when a user with a middle name wants to join for example: "Henk de Boer" and the user fills in "de Boer" as last name or "Henk de" as first name, the validation email will be send out but when the user try to validate the account has not been created and the username and password has not been send out to the users email address.
Also while you are in this process and the user validates his email correctly, it will be redirected to the login page but there is no message that the credentials are mailed out to the email address of the specific user.
I created a quick fix like this in ldapprov.module line #1555
$first_name = str_replace(' ','.',$first_name);
$last_name = str_replace(' ','.',$last_name);
#1
Could you test a dev version of the module? White spaces in the name are translated to dashes.
#2
Fatal error: Cannot use string offset as an array in /vhosts/community/includes/form.inc on line 985When i install the dev module i get a fatal error, while calling the following url: /user/register
Another question, will there be in the future plans to support middle names? And Drupal 7 support