Ajout sécurisation accès à documentation
This commit is contained in:
parent
c38506e108
commit
5e65535a47
@ -19,10 +19,10 @@ class WebAuthAdapter implements Zend_Auth_Adapter_Interface
|
||||
{
|
||||
//return new Zend_Auth_Result(Zend_Auth_Result::SUCCESS, $this->_username);
|
||||
$iDbCrm = new WDB('sdv1');
|
||||
$rep = $iDbCrm->select(//'utilisateurs', 'login, id, email, password, idClient, typeCompte, filtre_ip, civilite, nom, prenom, tel, fax, mobile, profil, raisonSociale, siret, adrNum, adrIndRep, adrTypeVoie, adrLibVoie, adrCp, adrVille, adrComp, tel, fax, mobile, pref, profil, dateInscription, dateValidation, nombreConnexions, dateDerniereConnexion, droits, referenceParDefaut, nbReponses, formatMail, dateDebutCompte, dateFinCompte, maxFicheId', "login='$login' AND actif=1", true, MYSQL_ASSOC);
|
||||
$rep = $iDbCrm->select(
|
||||
'utilisateurs u, clients c',
|
||||
'u.login, u.id, u.email, u.password, u.idClient, u.typeCompte, u.actif, u.filtre_ip, u.civilite, u.nom, u.prenom, u.tel, u.fax, u.mobile, u.profil, u.raisonSociale, u.siret, u.adrNum, u.adrIndRep, u.adrTypeVoie, u.adrLibVoie, u.adrCp, u.adrVille, u.adrComp, u.tel, u.fax, u.mobile, u.pref, u.profil, u.dateInscription, u.dateValidation, u.nombreConnexions, u.dateDerniereConnexion, u.droits, u.referenceParDefaut, u.nbReponses, u.formatMail, u.dateDebutCompte, u.dateFinCompte, u.maxFicheId, c.droits AS droitsClients, c.timeout',
|
||||
"u.login='$this->_username' AND u.idClient=c.id AND u.actif=1 AND u.deleted=0 AND c.actif='Oui'",
|
||||
"u.login='$this->_username' AND u.idClient=c.id AND u.actif=1 AND u.deleted=0 AND u.accesWS=1 AND c.actif='Oui'",
|
||||
false, MYSQL_ASSOC);
|
||||
$tabRep = $rep[0];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user