2017 © Pedro Peláez
 

yii-extension yii-user

User management module

image

uldisn/yii-user

User management module

  • Monday, October 3, 2016
  • by uldisn
  • Repository
  • 5 Watchers
  • 1 Stars
  • 7,579 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 170 Forks
  • 4 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Yii-User Installation

Download

Download or checkout (SVN/Git) from http://yii-user.2mx.org and unpack files in your protected/modules/user, (*1)

Git clone

clone git git@github.com:mishamx/yii-user.git

Configure

Change your config main:, (*2)

return array(
    #...
    // autoloading model and component classes
    'import'=>array(
        'application.models.*',
        'application.components.*',
        'application.modules.user.models.*',
        'application.modules.user.components.*',
    ),

    #...
    'modules'=>array(
        #...
        'user'=>array(
            # encrypting method (php hash function)
            'hash' => 'md5',

            # send activation email
            'sendActivationMail' => true,

            # allow access for non-activated users
            'loginNotActiv' => false,

            # activate user on registration (only sendActivationMail = false)
            'activeAfterRegister' => false,

            # automatically login from registration
            'autoLogin' => true,

            # guests allow register
            'allowGuestRegister' => true,

            # show user list
            'showUserList' => true,

            # alow to user edit self profile
            'allowUserEditProfile' => true,

            # registration path
            'registrationUrl' => array('/user/registration'),

            # recovery password path
            'recoveryUrl' => array('/user/recovery'),

            # login form path
            'loginUrl' => array('/user/login'),

            # page after login
            'returnUrl' => array('/user/profile'),

            # page after logout
            'returnLogoutUrl' => array('/user/login'),
        ),
        #...
    ),

    #...
    // application components
    'components'=>array(
    #...
        'db'=>array(
        #...
            'tablePrefix' => 'tbl_',
        #...
        ),
        #...
        'user'=>array(
            // enable cookie-based authentication
            'class' => 'WebUser',
        ),
    #...
    ),
    #...
);

Change your config console:, (*3)

return array(
    #...
    'modules'=>array(
        #...
        'user'=>array(
            # encrypting method (php hash function)
            'hash' => 'md5',

            # send activation email
            'sendActivationMail' => true,

            # allow access for non-activated users
            'loginNotActiv' => false,

            # activate user on registration (only sendActivationMail = false)
            'activeAfterRegister' => false,

            # automatically login from registration
            'autoLogin' => true,

            # registration path
            'registrationUrl' => array('/user/registration'),

            # recovery password path
            'recoveryUrl' => array('/user/recovery'),

            # login form path
            'loginUrl' => array('/user/login'),

            # page after login
            'returnUrl' => array('/user/profile'),

            # page after logout
            'returnLogoutUrl' => array('/user/login'),
        ),
        #...
    ),
    #...
);

Install

Run command: yiic migrate --migrationPath=user.migrations, (*4)

Input admin login, email and password, (*5)

The Versions

03/10 2016

dev-lt

dev-lt

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

20/07 2016

dev-master

9999999-dev

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

11/05 2015

dev-composer/master

dev-composer/master

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

19/04 2015

dev-HEAD

dev-HEAD

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

19/04 2015

1.0.3

1.0.3.0

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

14/04 2015

1.0.1

1.0.1.0

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

14/04 2015

1.0.2

1.0.2.0

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

14/04 2015

1.0.0

1.0.0.0

User management module

  Sources   Download

BSD-2-Clause

The Requires

 

user yii phundament

17/11 2013

dev-yii-booster

dev-yii-booster

User management module

  Sources   Download

BSD-2-Clause

user yii phundament