The Password-Protection plugin is a plugin for Urlaub.be that allows you to protect individual content files with a password.
Place the folder containing the plugin into your plugins directory located at ./user/plugins/
.
At the moment this plugin has no configuration.
To protect a content file with a password you have to add a Password:
header to the content file. This header can contain one or more passwords that are separated by a whitespace character. You can either provide plaintext passwords or hashed passwords as supported by the password_verify
function of PHP.
A hashed password can e.g. be prepared like this:
$ php -r "print(PHP_EOL.password_hash(readline('Password: '), PASSWORD_BCRYPT, ['cost' => 12]).PHP_EOL);"
By default the content is replaced by a password submission form. The content will only be displayed when a correct password is provided through the password submission form.