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:
Miles Lott 2002-01-03 18:02:10 +00:00
parent 7c92b70b90
commit d61dadfa72
2 changed files with 13 additions and 0 deletions

View File

@ -688,6 +688,12 @@
ldap_add($this->ds, $dn, $entry); ldap_add($this->ds, $dn, $entry);
} }
/* print ldap_error($this->ds); */ /* 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') function auto_add($accountname, $passwd, $default_prefs = False, $default_acls = False, $expiredate = 0, $account_status = 'A')

View File

@ -288,6 +288,13 @@
. md5($account_info['account_passwd']) . "', '" . $account_info['account_firstname'] . md5($account_info['account_passwd']) . "', '" . $account_info['account_firstname']
. "','" . $account_info['account_lastname'] . "','" . $account_info['account_status'] . "','" . $account_info['account_lastname'] . "','" . $account_info['account_status']
. "','" . $account_info['account_expires'] . "')",__LINE__,__FILE__); . "','" . $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') function auto_add($accountname, $passwd, $default_prefs = False, $default_acls = False, $expiredate = 0, $account_status = 'A')