intwebg/silverstripe-maintenance-mode

dev-main 2021-07-30 00:43 UTC

This package is auto-updated.

Last update: 2024-03-29 04:45:54 UTC


README

Easy way to put website in maintenance

  • Add a checkbox in the LeftAndMain Settings menu inside Access tab to enable maintenance mode and will only visible unless a MaintenanceModePage page will be created
  • An error message will be displayed when non-admin users try to log in. Currently applyied on default LoginHandler*
  • Configurable content and error type available in MaintenanceModePage

* If you have another way to validate the login process (ex. MFA), you must change this to:

config.yml:

SilverStripe\Core\Injector\Injector:
  SilverStripe\MFA\Authenticator\LoginHandler:
    class: IntWebG\MaintenanceModeLoginHandler

*todos:

  • Add task to create automatically the MaintenanceModePage