diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-21 10:09:02 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-21 10:09:02 +0000 |
| commit | 2c9fb5e70d52c3c10f6e08ae595cb4f516428f97 (patch) | |
| tree | 3e8a5c6eb480cdbc2c73e095bf0b20404a3eb469 /plugins | |
| parent | 0790dd908dbea273c3785a7f36db30d0fdf347e3 (diff) | |
- Set email address in new_user_identity (#1486282)
git-svn-id: https://svn.roundcube.net/trunk@3518 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/new_user_identity/new_user_identity.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/new_user_identity/new_user_identity.php b/plugins/new_user_identity/new_user_identity.php index 43eeae9dd..73e9198f7 100644 --- a/plugins/new_user_identity/new_user_identity.php +++ b/plugins/new_user_identity/new_user_identity.php @@ -39,6 +39,9 @@ class new_user_identity extends rcube_plugin $results = $ldap->search($match, $args['user'], TRUE); if (count($results->records) == 1) { $args['user_name'] = $results->records[0]['name']; + if (!$args['user_email'] && strpos($results->records[0]['email'], '@')) { + $args['user_email'] = $results->records[0]['email']; + } } } return $args; |
