Skip to content

M-91-zz/yii2-module-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configure DbManager

Add authManager component:

return [
    // ...
    'components' => [
        'authManager' => [
            'class' => 'yii\rbac\DbManager',
            // uncomment if you want to cache RBAC items hierarchy
            // 'cache' => 'cache',
        ],
        // ...
    ],
];

Run migrations

yii migrate --migrationPath=@yii/rbac/migrations

User identity

Define User identity

// ...
'user' => [
    'identityClass' => 'M91\UserModule\models\User',
    'enableAutoLogin' => true,
],
// ...

User Module

'modules' => [
    'user-module' => [
        'class' => 'M91\UserModule\Module',
    ]
]

About

User module and RBAC management for Yii2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages