Loginza snippet for MODX Revolution

Want to introduce to the General public my Loginza snippet for MODX Revolution.



It exists for a long time, and the reasons why I write about him now 2:
1. A couple of days ago I seriously updated.
2. The guys from Loginza stubbornly pretend that snippet there — and don't post it on the website. Pushing, thus, potential users of MODX.



skills


To authorize through Loginza user on the site. When you first enter creates a MODX user, who then logs via standard CPU to enter. Thus, the result of the registration\authorization no different from the more populyarnogo snippet Login.

The snippet got a lot that allow you to authenticate the user in certain contexts, to register in the right group and to update\don't update their profile every login.

In the new version the possibility to manually update the profile. Thus, users can Supplement their own data profiles.

can't


To bind data of one user from different remote services. Automatically to do it in any way (for example Vkontakte transmits only the bare identity, without a name and email). And hands... well I don't know, yet decided that this is not a very useful function.

Setting up the examples


The snippet is set from "package management" the admin area of MODX.

Then just call it in the page:
the
[[!Loginza]]
This will start the snippet with the default chunk registration for entrance and exit (tpl.Loginza.login and tpl.Loginza.logout)
For an unauthorized user will chunk to login for an authorized, out.

the
[[!Loginza?groups=`Users`]]
Registration of new users to the Users group when you first log on.

the
[[!Loginza?updateProfile=`0`]]
to update the user profile data from the remote service every login. This is necessary if the user will be able to update your profile on your site.

the
[[!Loginza?action=`getProfile]]`
Will display a form to update profile of chunk tpl.Loginza.profile. Send this form with the action updateProfile save the entered data (or throw an error). You can specify permitted to modify profile fields.

Links


Home snippet
the Extension repository MODX
Source on Github

Post about the snippet for the integration of Loginza in a site on MODX, so please in the comments to refrain from discussing the shortcomings of the service Loginza.
Who does not like — there are other services, such as uLogin.
Article based on information from habrahabr.ru

Популярные сообщения из этого блога

Approval of WSUS updates: import, export, copy

The Hilbert curve vs. Z-order

Kaspersky Security Center — the fight for automation