mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Cleaned up a little code
This commit is contained in:
parent
9adf13dc8c
commit
ae4eb2c239
@ -108,16 +108,8 @@
|
|||||||
function account_add($account_info)
|
function account_add($account_info)
|
||||||
{
|
{
|
||||||
global $phpgw_info, $phpgw, $ldap;
|
global $phpgw_info, $phpgw, $ldap;
|
||||||
|
|
||||||
if ($phpgw_info["server"]["ldap_encryption_type"] == "DES") {
|
$account_info["passwd"] = $phpgw->common->encrypt_password($account_info["passwd"]);
|
||||||
$salt = $phpgw->common->randomstring(2);
|
|
||||||
$account_info["passwd"] = $phpgw->common->des_cryptpasswd($account_info["passwd"], $salt);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($phpgw_info["server"]["ldap_encryption_type"] == "MD5") {
|
|
||||||
$salt = $phpgw->common->randomstring(9);
|
|
||||||
$account_info["passwd"] = $phpgw->common->md5_cryptpasswd($account_info["passwd"], $salt);
|
|
||||||
}
|
|
||||||
|
|
||||||
// This method is only temp. We need to figure out the best way to assign uidnumbers and
|
// This method is only temp. We need to figure out the best way to assign uidnumbers and
|
||||||
// guidnumbers.
|
// guidnumbers.
|
||||||
|
Loading…
Reference in New Issue
Block a user