1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
312,314c312,321
< $dbSelect->from($this->_tableName, array('*', $credentialExpression))
< ->where($this->_zendDb->quoteIdentifier($this->_identityColumn) . ' = ?', $this->_identity);
<
---
> $dbSelect->from($this->_tableName, array("$this->_identityColumn", "$this->_credentialColumn"))
> ->where($this->_zendDb->quoteIdentifier($this->_identityColumn) . ' = ?', $this->_identity)
> ->where($this->_zendDb->quoteIdentifier($this->_credentialColumn) . ' = ?', $this->_credential) ;
>
> $rSQL = $dbSelect->__toString() ;
> $rSQL = str_replace('"', '', $rSQL);
>
>
317c324
< $resultIdentities = $this->_zendDb->fetchAll($dbSelect->__toString());
---
> $resultIdentities = $this->_zendDb->fetchAll($rSQL);
337c344,346
<
---
> //
> // var_dump($resultIdentities[0]) ;
> //
339,347c348,356
<
< if ($resultIdentity['zend_auth_credential_match'] != '1') {
< $authResult['code'] = Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID;
< $authResult['messages'][] = 'Supplied credential is invalid.';
< return new Zend_Auth_Result($authResult['code'], $authResult['identity'], $authResult['messages']);
< }
<
< unset($resultIdentity['zend_auth_credential_match']);
< $this->_resultRow = $resultIdentity;
---
> //
> // if ($resultIdentity['ZEND_AUTH_CREDENTIAL_MATCH'] != '1') {
> // $authResult['code'] = Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID;
> // $authResult['messages'][] = 'Supplied credential is invalid.';
> // return new Zend_Auth_Result($authResult['code'], $authResult['identity'], $authResult['messages']);
> // }
> //
> // unset($resultIdentity['ZEND_AUTH_CREDENTIAL_MATCH']);
> $this->_resultRow = $resultIdentity; |
Partager