Download the PHP package pechente/kirby-password-guard without Composer
On this page you can find all versions of the php package pechente/kirby-password-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pechente/kirby-password-guard
More information about pechente/kirby-password-guard
Files in pechente/kirby-password-guard
Package kirby-password-guard
Short Description Kirby Password Guard
License MIT
Homepage https://github.com/Pechente/kirby-password-guard/
Informations about the package kirby-password-guard
Kirby Password Guard
Kirby Password Guard is a simple password protection for your Kirby website. It allows you to set a password that needs to be entered in order to access the site. This can be useful for staging sites to prevent unwanted access. Logged in users can access the site normally but any guest will run into the password entry page.
Installation
Download
Download and copy this repository to /site/plugins/kirby-password-guard
.
Git submodule
Composer
Setup
Configuration
Add the following lines to your config.php:
Template
You can overwrite the template for the password form by creating the file site/templates/password-guard.php
. Here's a
minimal example of what this file needs to include:
Please keep in mind that you should avoid adding code from your website like the stylesheets or header / footer since it might defeat the purpose of the password protection.
FAQ & Troubleshooting
I'm not seeing the password prompt when I visit my site
Make sure you're not signed in. If you're signed in, you won't see the password prompt. I'd recommend testing the plugin in a private browsing window.
If that didn't work, make sure that the configuration is correct.
How secure is the password protection?
The password is verified on the backend and cannot easily be circumvented. The password is only ever stored as a hash on the user's side.
If you have any issues with the plugin, please open an issue here on GitHub.