From 49ded4f73273ea18dea8d1969e5997056e9ff6a1 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Mon, 24 Jul 2017 17:43:12 +0200 Subject: update README.md --- ncp-web/ncp-launcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ncp-web') diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php index 43df0c8e..03672c78 100644 --- a/ncp-web/ncp-launcher.php +++ b/ncp-web/ncp-launcher.php @@ -19,7 +19,7 @@ if ( $_POST['action'] == "cfgreq" ) //CSFR check $token = isset($_POST['csrf_token']) ? $_POST['csrf_token'] : ''; if ( empty($token) || !validateCSRFToken($token) ) - exit( '{ "output": "Unauthorized request" }' ); + exit( '{ "output": "Unauthorized request. Try reloading the page" }' ); $path = '/usr/local/etc/nextcloudpi-config.d/'; $files = array_diff(scandir($path), array('.', '..')); @@ -55,7 +55,7 @@ else if ( $_POST['action'] == "launch" && $_POST['config'] ) // CSRF check $token = isset($_POST['csrf_token']) ? $_POST['csrf_token'] : ''; if ( empty($token) || !validateCSRFToken($token) ) - exit( '{ "output": "Unauthorized request" }' ); + exit( '{ "output": "Unauthorized request. Try reloading the page" }' ); chdir('/usr/local/etc/nextcloudpi-config.d/'); -- cgit v1.2.3