Wiki articles tagged with "authentication"

Showing 1-2 of 2 items.
Created 10 months ago by AndroideLP, updated 10 months ago by samdark.

How to login from different tables in Yii2

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: 17 345 times
Version: 2.0
Category: How-tos
Created 4 months ago by samdark, updated 23 days ago by samdark.

Using multiple models in an identity

Let's assume we have two models: Customer and Supplier and we want both to log in. Yii is quite flexible when it comes to authentication and authorization so it's possible.

7 1
Viewed: 9 623 times
Version: 2.0
Category: How-tos