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.
Yii2-user is a part of Dektrium project.
Dektrium project has been started with aim to provide useful extensions to your Yii2 application under one vendor namespace. We hope that by providing best-of-breed solutions to common requirements, we will help developers concentrate on the interesting things that their applications do.