Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ncp-web/ncp-launcher.php')
-rw-r--r--ncp-web/ncp-launcher.php4
1 files changed, 2 insertions, 2 deletions
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/');