Opened 4 years ago

Closed 3 years ago

#1486282 closed Feature Requests (fixed)

Full email address with new_user_identity

Reported by: ael Owned by:
Priority: 5 Milestone: 0.4-beta
Component: Plugins Version: 0.3.1
Severity: normal Keywords:
Cc:

Description

I'd like the new_user_identity to set the email address and not only the name. I'm quite sure email is set to %u@%d (uid@domain) in 0.3.1 and I'd prefer if it where firstname.lastname@… instead, IE the ldap attribute mail.

Attachments (1)

new_user_identity.php (1.5 KB) - added by staze 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 3 years ago by alec

  • Milestone changed from 0.4-beta to later

comment:2 Changed 3 years ago by staze

Add this line (to plugins/new_user_identity/new_user_identity.php):

$argsuser_email? = $results->records[0]email?;

below line 40:
$argsuser_name? = $results->records[0]['name];

That will populate email address from ldap.

There ya go.

Changed 3 years ago by staze

comment:3 Changed 3 years ago by staze

Add this line (to plugins/new_user_identity/new_user_identity.php):

$args['user_email'] = $results->records[0]['email'];

below line 40:

$args['user_name'] = $results->records[0]['name'];

That will populate email address from ldap.

There ya go.

comment:4 Changed 3 years ago by alec

  • Milestone changed from later to 0.4-beta
  • Resolution set to fixed
  • Status changed from new to closed

Added in r3518/svn.

Note: See TracTickets for help on using tickets.