From 61c768f8d3cc57ef41479761c88c019433ee844d Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sun, 25 Jan 2004 22:38:26 +0000 Subject: [PATCH] add a first and last name for auto created accounts too --- phpgwapi/inc/class.accounts_ldap.inc.php | 2 ++ phpgwapi/inc/class.accounts_sql.inc.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 74026af9a3..c15d5a677a 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -1052,6 +1052,8 @@ $GLOBALS['hook_values']['account_id'] = $accountid; $GLOBALS['hook_values']['new_passwd'] = $acct_info['account_passwd']; $GLOBALS['hook_values']['account_status'] = $acct_info['account_status']; + $GLOBALS['hook_values']['account_firstname'] = $acct_info['account_lid']; + $GLOBALS['hook_values']['account_lastname'] = 'eGW Account'; $GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array( 'location' => 'addaccount' ),False,True); // called for every app now, not only enabled ones diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 050fdbcde7..29bcc2a09a 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -450,6 +450,8 @@ $GLOBALS['hook_values']['account_id'] = $accountid; $GLOBALS['hook_values']['new_passwd'] = $acct_info['account_passwd']; $GLOBALS['hook_values']['account_status'] = $acct_info['account_status']; + $GLOBALS['hook_values']['account_firstname'] = $acct_info['account_lid']; + $GLOBALS['hook_values']['account_lastname'] = 'eGW Account'; $GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array( 'location' => 'addaccount' ),False,True); // called for every app now, not only enabled ones