Fix bug class_user.php : the password is not checked in the function checked

This commit is contained in:
Dany De Bontridder 2009-03-03 18:02:18 +00:00
parent d3815d3dfa
commit dfbdc90e0a

View file

@ -272,10 +272,10 @@ jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc,uj_priv,
if ( $this->login != 'phpcompta') {
$pass5=md5($this->pass);
$sql="select use_admin from ac_users where use_login=$1
and use_active=1 and use_pass=$2";
and use_active=1 ";
$cn=DbConnect();
$res=ExecSqlParam($cn,$sql,array($this->login,$pass5));
$res=ExecSqlParam($cn,$sql,array($this->login));
if ( pg_NumRows($res)==0) exit(__FILE__." ".__LINE__." aucun resultat");
$this->admin=pg_fetch_result($res,0);
}