Wiki articles tagged with "different table name"

Showing 1-1 of 1 item.

How to login from different tables in Yii2

Created 6 years ago by AndroideLP, updated 3 years 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
Viewed: 61 612 times
Version: 2.0
Category: How-tos