easyAuth

Restricting access to content through open passwords
The author
Lev Verbitskiy
Packages
4
Downloads
332
Usually answers within a few days
Автор дополнения
Packages
4
Downloads
332
Usually answers within a few days
Version 1.0.0-alpha
Release date 10.17.2016
Downloads 18
Views 1 192
Warning! This component requires PHP version 5.3 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.3 !
Restricting access to content through open passwords.
Examples of using:
  • Access to the videoconference
  • Temporary access to downloads
  • Access to the closed section with documents



The component is able to:
  • Restrict access by date
  • Restrict access by the «number of authorizations»
  • Restrict access by the amount of time spent in the «closed section»
  • The administrator at any time can block the user and will «throw it out» within 10 seconds
The component captures the number of user inputs, the time in a closed section.
There are some fields for user information.



To fix the residence time and disconnect the user at the right time, every 10 seconds the component sends ajax-request to the server (when the user is authorized). Thus, by modifying the code a bit, you can, for example, disconnect all users at once.

The use of the component is very simple, it is enough to call the isLoggedIn snippet, which takes 2 chunks — a chunk of the authorization form and a chunk with private content.

Discuss it in MODX.PRO community.