I think that a rare person who is following the Yii block in Habré did not see
an article about extension for authorization through social networks EAuth. Today I want to present in some way a continuation of this topic, namely, a module for managing users, based on the aforementioned supplement.
The module is called Lily and the name means nothing de facto, just thinking about the name, only lines from
Lilechka Mayakovsky
occurred to me .
I finished writing its first version about three weeks ago, but alas, during those three weeks I could not get an hour to write this article.
You can download the module itself from the
githab ; there you can also take a
sample project that demonstrates the capabilities of the module.
')
Lily currently supports the following functionality:
- Authorization and registration of users (both through the services supported by EAuth, and through emal; registration occurs implicitly, on the first login)
- Interface for joining various types of data to a user (through active relations)
- Interface for “forcing” the user to fill out forms (for example, the name field, date of birth at registration)
- The ability to link to the user any number of accounts, including from one service
- The possibility of merging two users, if one tried to log in the way already used in another account (different types of data processing of the old user are provided for this)
- Interface for storing data in a session (on the server side, the user only has early generated key)
By default, the module does not impose any fields like the user's name or gender, you can easily bind all this yourself (I recommend setting the sample project to understand how).
Well, it seems that everything, detailed documentation on installation and configuration can be seen in the description on the githaba, maybe later I will translate it into Russian (again, if there is time).
I hope you will like it :)
PS It would be super cool to place a sample project on someone’s server (I don’t have one yet), if anyone has the opportunity and desire, I’ll be glad to help with all my might.
UPD: demo nodge.ru/yii-eauth/lily