How to recrete basic login to login with database users data?

May be allready someone create this and in the internet we can find some articles?

Or may be someone can tell about it more?

I already create own registration (because in my project it is very difficult logic with few steps and many registration types), but I don’t want write login from scratch, becouse login is e-mail and password from one database table.

Take a look at the Yiii2 guide.

But there is only how to create filter logic. I need to rebuild basic template authorisation for checking users with database, not with $users array

You can try this. You will get everything working out of the box, and more than you expected :D

http://www.yiiframework.com/doc-2.0/guide-security-authentication.html

I was rebuilded standart model and controller, and create $users array with data from database. So i just included own code into allready working code and all works good