diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-24 18:43:12 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-11 00:17:55 +0300 |
commit | 49ded4f73273ea18dea8d1969e5997056e9ff6a1 (patch) | |
tree | 54fe77496eaa831d085547505ff37621470969c3 /ncp-web/ncp-launcher.php | |
parent | 90ff8b516e797ea6426667132fbf738e8df18a1d (diff) |
update README.md
Diffstat (limited to 'ncp-web/ncp-launcher.php')
-rw-r--r-- | ncp-web/ncp-launcher.php | 4 |
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/'); |