An helper to lock your users out of MODX Revolution manager.

Useful when doing some maintenance (migrations/backups...)

Locker basically consists of 2 elements :

The service

The service class is responsible of performing extra actions when locking the manager, like flushing all user sessions and setting the site offline (see the settings)

The plugin

The plugin, which roles are

  1. display a warning message when rendering the manager login (OnManagerLoginFormRender event), in case the manager is locked
  2. prevent users to log in, when they are not allowed to (no 'sudo' user or no `` permission), by either redirecting them to the site_unavailable_page page, or sending to the unauthorized_page page (OnManagerLogin event).