Wiki articles tagged with "different table name"

Showing 1-1 of 1 item.

How to login from different tables in Yii2

Created 2 years ago by AndroideLP, updated 18 days ago by lenovo.

The Problem: Yii2 utilizes by default UserIdentity configured in config/web.php for connection, this object apply one table to authentication ('identityClass' => 'app\panel\models\User'). How to authentication from diferent tables? Solution: Create instances in web.php to uses UserIdentify. eg:

5 0
6 followers
Viewed: 28 728 times
Version: 2.0
Category: How-tos