mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 21:46:22 +00:00
Say explicitly why a "Not allowed" error comes from.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -13,7 +13,7 @@ if (isset($_POST['token'])) {
|
||||
check_cors();
|
||||
check_csrf($_POST['token']);
|
||||
} else {
|
||||
log_and_die('Not allowed!');
|
||||
log_and_die('Not allowed (login session invalid or expired, please relogin on the Pi-hole dashboard)!');
|
||||
}
|
||||
|
||||
$reload = false;
|
||||
|
||||
Reference in New Issue
Block a user