D
D
DarkByte20152016-09-09 07:16:14
Yii
DarkByte2015, 2016-09-09 07:16:14

Authentication in Yii?

The network is full of examples, but for some reason only code is given everywhere and nowhere is it said about the database. For example, if you use the method described here . Standard authentication via CUserIdentity. What should be in the database for everything to work? What should the table be called? What fields should it contain?
And everywhere the process of authenticating a registered user is described, but how to organize the registration itself? Adding data to the database.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2016-09-09
@slo_nik

Good morning.
Everything is covered in this article.
And in this whole lecture for four hours on authorization, authentication and rbac.

I
ivkol, 2016-09-09
@ivkol

explore https://github.com/dektrium/yii2-user

B
Boris Yakushev, 2016-09-09
@za4me

Registration can also be viewed in the advanced template.

A
AlexKuznec, 2016-09-10
@AlexKuznec

The Advanced template implements full registration with the creation of a table and password recovery via mail.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question