thepublicgood / simplepass
A really simple way to keep a Laravel site private
Installs: 236
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thepublicgood/simplepass
Requires
- php: ^8.0
- laravel/framework: ^8.50
Requires (Dev)
- orchestra/testbench: ^6.22
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2022-12-27 10:57:23 UTC
README
A simple site-wide lockout (kinda like Basic HTTP auth).
Install using Composer:
composer require thepublicgood/simplepass
Set a new password with:
php ./artisan simplepass:set MY_PASSWORD
This will set a SIMPLE_SECRET
value in .env
.
When attempting to browse your site, you'll get redirected to /simplepass/auth
and a password request. Use the password you set to unlock. If you ever need to log out, simply visit /simplepass/logout
.
Configuration
You can publish the configuration file with:
php ./artisan vendor:publish --provider=TPG\\Simple\\ServiceProvider
That will place a simplepass.php
file in the config directory. Configuration options have been documented in the configuration file.