I developing a site with two different registrations, and I have 2 different table, Im using RbacDB, and in the web config in the components section I have user configuration, a
You have to create a web user class for the second identity
namespace app\components; class UserTwo extends \yii\web\User{ }
than specify the class name in your config
'user-two' => [ 'class'=> 'app\components\UserTwo' 'identityClass' => 'app\models\SecondUser', 'enableAutoLogin' => true, ],