Usr module

User login, registration and more.

Resources

Demo

This site is configured to present features like:

Demo configuration

'modules'=>array(
        // ...
        'usr'=>array(
            'class'=>'vendors.nineinchnick.yii-usr.UsrModule',
            'layout'=>'//layouts/column1',
            'userIdentityClass' => 'UserIdentity',
            'hybridauthProviders' => array(
                'OpenID' => array('enabled'=>true),
                'Facebook' => array('enabled'=>true, 'keys'=>array('id'=>'', 'secret'=>''), 'scope'=>'email'),
            ),
        ),
    ),

Migrations

Currently there are two migrations that creates the table for User and UserRemoteIdentity models:

Custom classes

The module provides an example User and UserRemoteIdentity models and matching UserIdentity implementation. They are located in:

All project specific logic is contained in the UserIdentity class.