Add the database in Auth by Db

This commit is contained in:
Michael RICOIS 2013-11-25 09:10:39 +00:00
parent 2f22f00fb5
commit d0747216f1

View File

@ -60,8 +60,8 @@ class Scores_Auth_Adapter_Db implements Zend_Auth_Adapter_Interface
$sql = $userM->select()
->setIntegrityCheck(false)
->from(array('u'=>'utilisateurs'), array('u.idClient', 'u.id', 'u.login', 'u.password'))
->join(array('c'=>'clients'), 'u.idClient = c.id', array('c.timeout'))
->from(array('u'=>'sdv1.utilisateurs'), array('u.idClient', 'u.id', 'u.login', 'u.password'))
->join(array('c'=>'sdv1.clients'), 'u.idClient = c.id', array('c.timeout'))
->where('u.login=?', $this->_username)
->where('u.actif=?', 1)
->where('u.deleted=?', 0)