yii-user Yii PHP Framework extension for registration and management users accounts.

  1. Resources
  2. Documentation
  3. Change Log

Yii PHP Framework extension for registration and management users accounts.

  • Login from User Name or Email
  • Registration
  • Activation accounts (verification email, administrator or not)
  • Recovery password (send recovery key to user email)
  • User profile page
  • Manage Users
  • Manage Profile Fields
  • Profile field widget for view, edit and save data
  • Date widget (jQueryUI datepicker)
  • File upload widget
  • Profile Relation Widget
  • API

Resources

Ohloh project report for yii-user

Documentation

Requirements
  • Yii 1.1 or above
Installation
  • Extract the release file under protected
  • Change your config main:
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,

            # 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',
            'allowAutoLogin'=>true,
            'loginUrl' => array('/user/login'),
        ),
    #...
    ),
    #...
);
  • Change your config console:
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'),
        ),
        #...
    ),
    #...
);
  • Run command: yiic migrate --migrationPath=user.migrations
  • Input admin login, email and password
  • Insert items into zii.widgets.CMenu array (protected/views/layouts/main.php)
array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),

Change Log

  • 2012-06-11 | (HEAD, origin/master, origin/HEAD, master) Readme update - [Mikhail Mangushev]
  • 2012-06-11 | Fixed security bug (thanks jpablo) - [Mikhail Mangushev]
  • 2012-06-07 | Fix marsuboss pullrequest - [Mikhail Mangushev]
  • 2012-06-07 | Merge pull request #4 from marsuboss/master - [mishamx]
  • 2012-06-06 | Add 'Old Password' Field for change password - [DECORTE Jeremy]
  • 2012-05-26 | Merge pull request #3 from rmenor/master - [mishamx]
  • 2012-05-26 | Add DECIMAL type in ProfileField - [rmenor]
  • 2012-05-26 | Repair Issue 45: Field Type Float Won't Accept 10,2 Format - [rmenor]
  • 2012-05-23 | Set default values in migration - [Mikhail Mangushev]
  • 2012-05-23 | Merge branch 'master' of github.com:mishamx/yii-user - [Mikhail Mangushev]
  • 2012-05-23 | Interactive migration added - [Mikhail Mangushev]
  • 2012-05-22 | Merge pull request #2 from phundament/master - [mishamx]
  • 2012-04-19 | fixed alias - [Tobias Munk]
  • 2011-10-30 | Added to the global dictionary translation - [Mikhail Mangushev]
  • 2011-10-19 | Merge pull request #1 from rallin/simple_clone - [mishamx]
  • 2011-10-18 | Update Readme - [rallin]
  • 2011-10-18 | Move files to the root - [rallin]
  • 2011-09-06 | WebUser: comment stat module Migration: added current time - [Mikhail Mangushev]
  • 2011-08-19 | Admin user rules fix - [Mikhail Mangushev]
  • 2011-08-11 | Readmi fix Migraton fix for sqlite - [Mikhail Mangushev]
  • 2011-08-11 | change version - [Mikhail Mangushev]
  • 2011-08-11 | Use local setting for migration - [Mikhail Mangushev]
  • 2011-08-11 | Unixttime fields replaced to timestamp - [Mikhail Mangushev]
  • 2011-08-10 | Readme update - [Mikhail Mangushev]
  • 2011-08-10 | Move migration Use command: yiic migrate --migrationPath=application.modules.user.migrations - [Mikhail Mangushev]
  • 2011-08-08 | Added readme markdown - [Mikhail Mangushev]
  • 2011-08-07 | Yii-User install migration - [Mikhail Mangushev]
  • 2011-08-05 | Added WebUser component - [Mikhail Mangushev]
  • 2011-06-02 | Update Admin Interface Fixed issue 60 Fixed issue 61 Fixed issue 63 Fixed issue 77 Fixed issue 80 Fixed issue 81 Fixed
  • 2011-05-31 | Added dutch translation (thanks afj.lamb...@gmail.com) Fixed issue 86 - [Mikhail Mangushev]
  • 2011-04-04 | Polish translation added (thanks aleksand...@gmail.com) Fixed issue 79 - [Mikhail Mangushev]
  • 2011-03-31 | Fixed issue 59 - [Mikhail Mangushev]
  • 2011-03-31 | Fixed issue 75 - [Mikhail Mangushev]
  • 2011-02-23 | Japanese translation (fixed issue 62) - [Mikhail Mangushev]
  • 2011-02-22 | Added Romanian translation (thanks @matricks) - [Mikhail Mangushev]
  • 2011-02-16 | add multiple validators for profile field (fixed issue 56) fix delete UWfile error for sqlite - [Mikhail Mangushev]
  • 2011-02-16 | Merge controller filters (fixed issue 55) - [Mikhail Mangushev]
  • 2011-02-16 | Added support of configuring behaviors via module fields (fixed issue 54) - [Mikhail Mangushev]
  • 2011-02-09 | Fixed issue 53 - [Mikhail Mangushev]
  • 2011-02-09 | Fixed issue 47 - [Mikhail Mangushev]
  • 2011-02-09 | Fixed issue 44 - [Mikhail Mangushev]
  • 2011-02-08 | logic fix r97 - [Mikhail Mangushev]
  • 2011-02-08 | Fixed issue 43 - [Mikhail Mangushev]
  • 2011-01-31 | - [Vitaliy Step]
  • 2011-01-27 | Portuguese translation (fixed issue 51) - [Mikhail Mangushev]
  • 2011-01-27 | Fixed issue 49 - [Mikhail Mangushev]
  • 2011-01-27 | Fixed issue 36 - [Mikhail Mangushev]
  • 2011-01-27 | Fixed issue 24 - [Mikhail Mangushev]
  • 2011-01-27 | Translation fix Rename translation ua->uk Added Hungarian (thanks @lupus2001) and Greek (thanks @drumaddict) translation Added
  • 2011-01-19 | Widgetparams resize - [Mikhail Mangushev]
  • 2010-12-02 | Form validator fix - [Mikhail Mangushev]
  • 2010-11-22 | Fixed issue 46 - [Mikhail Mangushev]
  • 2010-11-15 | AJAX form validation - [Mikhail Mangushev]
  • 2010-11-12 | IE fix - [Mikhail Mangushev]
  • 2010-11-09 | Fixed issue 41 - [Mikhail Mangushev]
  • 2010-11-02 | Fixed issue 39 - [Mikhail Mangushev]
  • 2010-11-02 | Fixed issue 38 - [Mikhail Mangushev]
  • 2010-10-27 | (0.3) Admin edit form fix - [Mikhail Mangushev]
  • 2010-10-27 | Fixed issue 37 - [Mikhail Mangushev]
  • 2010-09-23 | Fixed issue 34 and translation. - [Mikhail Mangushev]
  • 2010-09-23 | Fixed issue 31 - [Mikhail Mangushev]
  • 2010-09-22 | Fixed issue 32 - [Mikhail Mangushev]
  • 2010-09-20 | Added: Parameters names tables Parameter disable "captcha" New mode: activate user by administrator New mode: activate user
  • 2010-08-03 | fixed Issue #22 - [Mikhail Mangushev]
  • 2010-08-03 | Added Spanish translation Fixed issue #18 - [Mikhail Mangushev]
  • 2010-06-30 | fixed recovery form reg exp rules - [Mikhail Mangushev]
  • 2010-06-29 | Fixed: issue #11 issue #12 issue #14 issue #15 * issue #16 - [Mikhail Mangushev]
  • 2010-03-17 | Fix bug: clear password on login - [Mikhail Mangushev]
  • 2010-02-27 | Added and update: user relations API reange (select) - [Mikhail Mangushev]
  • 2010-02-26 | temporarily due to a bug http://code.google.com/p/yii/issues/detail?id=636 - [Mikhail Mangushev]
  • 2010-02-26 | bug fix - [Mikhail Mangushev]
  • 2010-02-26 | fix bug - [Mikhail Mangushev]
  • 2010-02-25 | (0.2) UserModule - [Mikhail Mangushev]
  • 2010-02-25 | ported to module - [Mikhail Mangushev]
  • 2010-02-13 | fix: issue #3 issue #4 * Error saving profile: empty activation key - [Mikhail Mangushev]
  • 2010-02-13 | fix Issue #2 - [Mikhail Mangushev]
  • 2010-02-11 | (0.1) Yii-User version 0.1 release. = Features of Yii-User = Login from User Name or Email Registration * Activation accounts (v
  • 2010-01-20 | Yii-User version 0.1 (alpha) = Features of Yii-User = Login from User Name or Email Registration * Activation accounts
217 12
198 followers
73 960 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Auth
Tags: module, user
Developed by: mishamx
Created on: Feb 12, 2010
Last updated: 6 years ago

Downloads

show all

Related Extensions