Showing 1-4 of 4 items.

How to login from different tables in Yii2

Created 8 years ago by AndroideLP AndroideLP, updated 6 years ago by lenovo lenovo. 7 comments

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
Viewed: 89 991 times
Version: 2.0
Category: How-tos