Most of web applications provide a way for users to register, log in or reset their forgotten passwords. Rather than re-implementing this on each application, you can use Yii2-user which is a flexible user management module for Yii2 that handles common tasks such as registration, authentication and password retrieval. The latest version includes following features:
The preferred way to install this extension is through composer.
composer require --prefer-dist yuncms/yii2-user
require section of your composer.json.
Configuring your application
Add following lines to your main configuration file:
'modules' => [ 'user' => [ 'class' => 'yuncms\user\frontend\Module', ], ],
Updating database schema
After you downloaded and configured Yii2-user, the last thing you need to do is updating your database schema by applying the migrations:
$ php yii migrate/up --migrationPath=@vendor/yuncms/yii2-user/migrations
This is released under the MIT License. See the bundled LICENSE.md for details.