samkoch/yii2-user

Yii2 user components

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2017-06-01 19:55 UTC

This package is not auto-updated.

Last update: 2024-11-20 02:37:27 UTC


README

Yii2 user components

Installation

It is recommended to use composer to install the library.

$ composer require samkoch/yii2-user
$ ./yii migrate/up --migrationPath=@vendor/samkoch/yii2-user/src/migrations

Add the following to config/params.php:

    'login' => [
        //default true
        //'enableSSO' => true,

        //default false
        'onTheFlyADImport' => true,

        //bound to onTheFlyADImport;
        // default empty, meaning all groups are allowed
        'userGroups' => ['someAdminGroupName' => \samkoch\yii2user\models\User::USERGROUP_ADMIN],
    ],