Yii2 User module ¶
Just another user module and component. I've adopted some of the features of other user modules and added more advanced features.
- Optional self registration via front end
- Lost password retrieval(optional)
- User administration interface
- Flexible access control
- Console commnads
- Advanced user (optional)
Installation ¶
The preferred way to install this extension is through composer.
Either run ~~~ php composer.phar require --prefer-dist nkostadinov/yii2-user "" ~~~ or add in composer.json ~~~ "nkostadinov/yii2-user": "" ~~~
Usage ¶
Add following lines to your main configuration file: ~~~ 'components' => [
'user' => [
'class' => 'nkostadinov\user\components\User',
],
], .... //if you want to use the UI part of the extension 'modules' => [
'user' => [
'class' => 'nkostadinov\user\Module',
],
], ~~~
Resources ¶
For more detailed explanation and additional examples
Installation also requires migration:
php yii migrate/up --migrationPath=@vendor/nkostadinov/yii2-user/migrations
see: https://github.com/nkostadinov/yii2-user
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.