mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add default prefs creation for a new user in create() - will need to do this either
here or in admin.
This commit is contained in:
parent
7c92b70b90
commit
d61dadfa72
@ -688,6 +688,12 @@
|
||||
ldap_add($this->ds, $dn, $entry);
|
||||
}
|
||||
/* print ldap_error($this->ds); */
|
||||
|
||||
if($account_id)
|
||||
{
|
||||
$GLOBALS['phpgw']->preferences->create_defaults($account_id);
|
||||
return $account_id;
|
||||
}
|
||||
}
|
||||
|
||||
function auto_add($accountname, $passwd, $default_prefs = False, $default_acls = False, $expiredate = 0, $account_status = 'A')
|
||||
|
@ -288,6 +288,13 @@
|
||||
. md5($account_info['account_passwd']) . "', '" . $account_info['account_firstname']
|
||||
. "','" . $account_info['account_lastname'] . "','" . $account_info['account_status']
|
||||
. "','" . $account_info['account_expires'] . "')",__LINE__,__FILE__);
|
||||
|
||||
$accountid = $this->db->get_last_insert_id('phpgw_accounts','account_id');
|
||||
if($account_id)
|
||||
{
|
||||
$GLOBALS['phpgw']->preferences->create_defaults($accountid);
|
||||
return $accountid;
|
||||
}
|
||||
}
|
||||
|
||||
function auto_add($accountname, $passwd, $default_prefs = False, $default_acls = False, $expiredate = 0, $account_status = 'A')
|
||||
|
Loading…
Reference in New Issue
Block a user