*** empty log message ***
This commit is contained in:
parent
19085af235
commit
e1c2ccc5c1
@ -49,6 +49,8 @@ class Conf {
|
|||||||
|
|
||||||
$this->years = 2001;
|
$this->years = 2001;
|
||||||
|
|
||||||
|
$this->password_encrypted = 1;
|
||||||
|
|
||||||
$this->css = "theme/dolibarr/dolibarr.css";
|
$this->css = "theme/dolibarr/dolibarr.css";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -190,7 +190,16 @@ class User {
|
|||||||
$password = substr(crypt(uniqid("")),0,8);
|
$password = substr(crypt(uniqid("")),0,8);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "UPDATE llx_user SET pass = '".crypt($password, "CRYPT_STD_DES")."'";
|
if ($conf->password_encrypted)
|
||||||
|
{
|
||||||
|
$sqlpass = crypt($password, "CRYPT_STD_DES");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$sqlpass = $password;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql = "UPDATE llx_user SET pass = '".$sqlpass."'";
|
||||||
$sql .= " WHERE rowid = $this->id";
|
$sql .= " WHERE rowid = $this->id";
|
||||||
|
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user