2010年9月21日星期二

Re: [fw-mvc] Zend_auth .. is case sensitive

here u are hector

if you are using Zend_Auth_Adapter_DbTable, just try this one:

$authAdapter = new Zend_Auth_Adapter_DbTable(
$dbAdapter,
'usertable',
new Zend_Db_Expr('LOWER(username)'),
'password'
);

$authAdapter
->setIdentity(strtolower($this->_getParam('username'))
->setCredential($this->_getParam('password'));


--
________________
Sincerely
Sina Miandashti
MuSicBasE.ir & InvisionPower.ir Admin

没有评论: