mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
fix: disallow usage of default password (#3284)
This commit is contained in:
@@ -14,6 +14,13 @@
|
||||
|
||||
final class AuthenticationMiddleware
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
if (Configuration::getConfig('authentication', 'password') === '') {
|
||||
throw new \Exception('The authentication password cannot be the empty string');
|
||||
}
|
||||
}
|
||||
|
||||
public function __invoke(): void
|
||||
{
|
||||
$user = $_SERVER['PHP_AUTH_USER'] ?? null;
|
||||
|
Reference in New Issue
Block a user