Wiki articles tagged with "multiple login"

Showing 1-1 of 1 item.

How to login from different tables in Yii2

Created 4 years ago by AndroideLP, updated 2 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: 56 060 times
Version: 2.0
Category: How-tos