aboutsummaryrefslogtreecommitdiff
path: root/lib/Authentication.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2022-07-08 14:17:25 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-08 14:17:25 +0200
commitabfc6b4633bdf674002ccf346f54fd80c87f6f3d (patch)
treebf5b15b9083c1f6debdb5eeb2f9492858e3ff59b /lib/Authentication.php
parent951092eef374db048b77bac85e75e3547bfac702 (diff)
downloadrss-bridge-abfc6b4633bdf674002ccf346f54fd80c87f6f3d.tar.gz
rss-bridge-abfc6b4633bdf674002ccf346f54fd80c87f6f3d.tar.zst
rss-bridge-abfc6b4633bdf674002ccf346f54fd80c87f6f3d.zip
feat: introduce template engine (#2899)
Diffstat (limited to 'lib/Authentication.php')
-rw-r--r--lib/Authentication.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Authentication.php b/lib/Authentication.php
index 1ae26edf..172836b2 100644
--- a/lib/Authentication.php
+++ b/lib/Authentication.php
@@ -58,7 +58,9 @@ class Authentication
if (Configuration::getConfig('authentication', 'enable') === true) {
if (!Authentication::verifyPrompt()) {
header('WWW-Authenticate: Basic realm="RSS-Bridge"', true, 401);
- die('Please authenticate in order to access this instance !');
+ $message = 'Please authenticate in order to access this instance !';
+ print $message;
+ exit;
}
}
}