Usually, you keep username and password fields in one table (for example Users). In this case it is easy to use Zend_Auth_Adapter_DbTable
. However, what if I have password in a separate Passwords table. How do you uses Zend_Auth_Adapter_DbTable 开发者_JAVA技巧to have identityColumn in a one table (Users) and credentialColumn in other table (Passwords)?
Thanks.
I would recommend creating a table view from Users and Passwords tables. Than you would specify the view as tableName for Zend_Auth_Adapter_DbTable.
精彩评论