开发者

Zend_Auth_Adapter_DbTable for two tables?

开发者 https://www.devze.com 2023-02-15 11:11 出处:网络
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 tabl

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

精彩评论

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