Configuring Maintenance Mode¶
All settings are on the extension's settings page: open the Extensions list in the admin area and edit MaintenanceLock. There are no other admin pages and no permissions.
Settings¶
| Setting | Type | Default | What it does |
|---|---|---|---|
| Enable Maintenance Lock | Select (No / Yes) | No | Switches the lock on or off. With No, the extension lets every request through. |
| Lock Dashboard (/dashboard) | Select (No / Yes) | Yes | With Yes, the home page and /dashboard are locked like every other page. With No, the home page (/), /dashboard and paths below /dashboard/ stay open without the password. |
| Access Password | Text | empty | The password visitors enter on /maintenance. |
| Maintenance Message | Textarea | empty | Text shown on the password page. HTML in it is escaped and line breaks are kept. If empty, the page shows "The site is temporarily locked. Enter the password to continue." |
| Custom HTML (optional) | Textarea | empty | HTML shown below the password form, for example support links. It is output as you enter it, without escaping. |
Below the settings, the page shows a short info box that summarises what the extension does.
Paymenter stores no settings for the extension until you save the settings page for the first time. Until then the lock is off. Choose a value in both selects yourself before you save, and do not rely on the defaults being preselected.
Warning
Lock Dashboard (/dashboard) set to No opens the home page as well as the dashboard. The pages render, but their interactive parts do not work for a visitor without the password, because Paymenter's Livewire update requests (/paymenter/update) stay locked.
How the password is stored and checked¶
- The password is saved as plain text in Paymenter's settings table, like any other extension setting. It is not hashed or encrypted, and the settings page shows it in a normal text field. Use a password you do not use anywhere else.
- The check is an exact, case-sensitive comparison with the saved value.
- If Access Password is empty, every submission of the password form unlocks the store.
- The extension does not limit the number of attempts.
Changing settings while the lock is on¶
Changes apply to the next request. Changing the password does not lock out visitors who already entered the old one: their session stays unlocked until it ends. See Usage.