Merge branch 'develop' of ssh://git@github.com/Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2011-11-30 15:19:21 +01:00
commit f567119470
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ if (empty($reshook))
if ($result > 0)
{
$result2=$nuser->setPassword($user,$_POST["password"],0,1,1);
$result2=$nuser->setPassword($user,$_POST["password"],0,0,1);
if ($result2)
{
$db->commit();

View File

@ -730,7 +730,7 @@ class User extends CommonObject
return -1;
}
$now=dol_now();
$this->datec = dol_now();
$error=0;
$this->db->begin();
@ -756,7 +756,7 @@ class User extends CommonObject
else
{
$sql = "INSERT INTO ".MAIN_DB_PREFIX."user (datec,login,ldap_sid,entity)";
$sql.= " VALUES('".$this->db->idate($now)."','".$this->db->escape($this->login)."','".$this->ldap_sid."',".$this->entity.")";
$sql.= " VALUES('".$this->db->idate($this->datec)."','".$this->db->escape($this->login)."','".$this->ldap_sid."',".$this->entity.")";
$result=$this->db->query($sql);
dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);