Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mishamx/yii-user
Yii PHP Framework extension for registration and management users accounts.
https://github.com/mishamx/yii-user
Last synced: 4 days ago
JSON representation
Yii PHP Framework extension for registration and management users accounts.
- Host: GitHub
- URL: https://github.com/mishamx/yii-user
- Owner: mishamx
- Created: 2011-08-05T15:51:57.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T08:29:29.000Z (over 7 years ago)
- Last Synced: 2024-11-06T14:42:41.520Z (5 days ago)
- Language: PHP
- Homepage: http://yii-user.2mx.org/
- Size: 393 KB
- Stars: 186
- Watchers: 36
- Forks: 154
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii-User Installation
=====================Download
--------Download or checkout (SVN/Git) from http://yii-user.2mx.org and unpack files in your protected/modules/user
Git clone
---------clone git [email protected]:mishamx/yii-user.git
Configure
---------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',
),
#...
),
#...
);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'),
),
#...
),
#...
);Install
-------Run command:
yiic migrate --migrationPath=user.migrationsInput admin login, email and password