Simple User Authorization

Greetings Everyone,

I would like to ask how to simply replace the default authorization of (admin/admin or demo/demo) with our user database with note that am using the Yii-basic template. Any clarification will be helpful.

Thank you and have a great day.

There are a lot of topics about this question on Stackoverflow:

I am doing okay with Yii2-user:

Thank you Yimm it was very helpful, Merry Christmas to you and your family and have a great eve :)

Thank you NovaLogic and have a great Christmas eve :)