开发者

Zend_Auth_Adapter_DbTable for two tables?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜