2017 © Pedro Peláez
 

yii2-extension yii2user

image

marsoltys/yii2user

  • Monday, July 18, 2016
  • by marsoltys
  • Repository
  • 1 Watchers
  • 1 Stars
  • 100 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

NOTE: This is Yii2-User module, which is rewritten version of Yii-User which can be found on http://www.yiiframework.com/extension/yii-user

This module allows you to maintain users., (*1)

Yii-User Installation

Download

Download or checkout (SVN/Git) from https://github.com/marsoltys/yii2user and unpack files in your protected/modules/user, (*2)

Composer

composer require "marsoltys/yii2user:*",

Configure

Change your config web.php:
        #...
        'modules'=>[
            #...
            'user' => [
                'class' => 'marsoltys\yii2user\Module',

                # OPTIONALLY YOU CAN CONFIGURE THESE PROPERTIES
                #'userClass' => 'marsoltys\yii2user\components\User', # User component class, you can change this to be your own class but it must be extended from class provided in this comment
                #'identityClass' => 'marsoltys\yii2user\models\User', # User Identity class, you can change this to be your own class but it must be extended from class provided in this comment
                #'userModel' => 'marsoltys\yii2user\models\User',     # User model class, you can change this to be your own class but it must be extended from class provided in this comment
            ],
            #...
        ],

Change your config console:, (*3)

    return array(
        #...
        'modules'=>[
            #...

            'user' => [
                'class' => 'marsoltys\yii2user\Module'
            ],

            #...
        ]
        #...
    ); 

Install

  1. Run console command:, (*4)

    php yii migrate --migrationPath=@marsoltys/yii2user/migrations
  2. Provide admin login, email and password in console when prompted., (*5)

NOTE

Please note that "user" component will be configured through this User module. To configure user component classes please see comments in web.php config file of "Configure" section above, (*6)

TODO

  • Fix "Autocomplete" and "Belongsto" components
  • Refresh user session if anything changes within user details (logout user after pass change?)
  • add activation email option when user is created by admin and status is not active

CHANGELOG

1.0.0.2

  • Added bootstrapping through composer

The Versions

18/07 2016

1.0.1

1.0.1.0

  Sources   Download

MIT

10/02 2016

1.0.0.3

1.0.0.3

  Sources   Download

MIT

18/01 2016

1.0.0.2

1.0.0.2

  Sources   Download

MIT

29/11 2015

1.0.0.1

1.0.0.1

  Sources   Download

MIT

28/11 2015

dev-master

9999999-dev

  Sources   Download

MIT

28/11 2015

1.0.0

1.0.0.0

  Sources   Download

MIT