mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +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)
|
||||
{
|
||||
global $phpgw_info, $phpgw, $ldap;
|
||||
|
||||
if ($phpgw_info["server"]["ldap_encryption_type"] == "DES") {
|
||||
$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);
|
||||
}
|
||||
|
||||
$account_info["passwd"] = $phpgw->common->encrypt_password($account_info["passwd"]);
|
||||
|
||||
// This method is only temp. We need to figure out the best way to assign uidnumbers and
|
||||
// guidnumbers.
|
||||
|
Loading…
Reference in New Issue
Block a user