user594791
user594791

Reputation: 617

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 to have identityColumn in a one table (Users) and credentialColumn in other table (Passwords)?

Thanks.

Upvotes: 1

Views: 439

Answers (1)

Marcin
Marcin

Reputation: 238111

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.

Upvotes: 6

Related Questions