mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
create account now takes an array and made expiring accounts work
This commit is contained in:
parent
6f9a837e70
commit
b1f61c2fff
@ -210,15 +210,13 @@
|
|||||||
return $this->db->f(0) > 0;
|
return $this->db->f(0) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// !! NOTE: We should pass an array to this to make updates easier, plus I need to add account_expires
|
function create($account_info)
|
||||||
// I didn't want to risk breaking too much code at once, I will do this soon. (jengo)
|
|
||||||
function create($account_type, $account_lid, $account_pwd, $account_firstname, $account_lastname, $account_status, $account_id='', $account_home='',$account_shell='')
|
|
||||||
{
|
{
|
||||||
// $account_home and $account_shell not used here
|
|
||||||
$this->db->query("insert into phpgw_accounts (account_lid, account_type, account_pwd, "
|
$this->db->query("insert into phpgw_accounts (account_lid, account_type, account_pwd, "
|
||||||
. "account_firstname, account_lastname, account_status) values ('" . $account_lid
|
. "account_firstname, account_lastname, account_status, account_expires) values ('" . $account_info['lid']
|
||||||
. "','" . $account_type . "','" . md5($account_pwd) . "', '" . $account_firstname
|
. "','" . $account_info['type'] . "','" . md5($account_info['pwd']) . "', '" . $account_info['firstname']
|
||||||
. "','" . $account_lastname . "','" . $account_status . "')",__LINE__,__FILE__);
|
. "','" . $account_info['lastname'] . "','" . $account_info['status'] . "','" . $account_info['expires']
|
||||||
|
. "')",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
function auto_add($accountname, $passwd, $default_prefs = False, $default_acls = False)
|
function auto_add($accountname, $passwd, $default_prefs = False, $default_acls = False)
|
||||||
|
Loading…
Reference in New Issue
Block a user