mercator / wn-secretpage-plugin
Password-protection of individual CMS or Winter Static Pages
Installs: 484
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:winter-plugin
Requires
- php: >=7.0
- composer/installers: ~1.0
README
This plugin allows simple password-protection of individual CMS or Winter Static Pages.
Installation
For the time being, use composer to install:
composer require mercator/wn-secretpage-plugin
php artisan winter:up
Usage
The plugin provides a single component (for CMS) and a single snippet (for Static Pages) with two fields:
- Passphrase: The secret the user has to provide in order to access the page. By default, a random string is generated.
- Invalid access URL: The URL the user is directed to if an incorrect passphrase is suppliedi (or is missing at all).
Once the component or snippet has been placed on the page and the passphrase as well as the Forward URL
as been supplied, a user can access the page by passing a parameter as follows
https://myhost.com/mypage?__secretpage=<passphrase>
.
For example, to display the page xyz on host mercator.li with secret aszhim12as0AmoArtZR call
https://mercator.li/xyz?__secretpage=aszhim12as0AmoArtZR
Please consider donating to support the ongoing development if you find this plugin useful.