Authentication in php MySQL -
i using sql , php code, user table have password column char(32) , salt column char(64)
now php code trying authenticate using below code
$this->_authadapter = new zend_auth_adapter_dbtable( $db, engine_api::_()->getitemtable('user')->info('name'), 'user_id', 'password', "md5(concat('".$salt."', ?, salt)))" );
but gives me following error: supplied parameters zend_auth_adapter_dbtable failed produce valid sql statement, please check table , column names validity.
any suggestion??
Comments
Post a Comment