Wiki articles tagged with "multiple login"

Showing 1-1 of 1 item.

How to login from different tables in Yii2

Created a year ago by AndroideLP, updated 4 months ago by AndroideLP.

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

5 0
Viewed: 25 969 times
Version: 2.0
Category: How-tos