summaryrefslogtreecommitdiffstats
path: root/files/ajax
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-18 15:07:14 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-18 15:07:14 +0200
commitb57823baa5d4f0d23be8d034550a0ffcb788a2ca (patch)
treebfae96c4e0e7b88b072379e3c2addf26a31561c0 /files/ajax
parent46f1ea14c0af9f64722d44d9390d868c4e060c14 (diff)
downloadnextcloud-server-b57823baa5d4f0d23be8d034550a0ffcb788a2ca.tar.gz
nextcloud-server-b57823baa5d4f0d23be8d034550a0ffcb788a2ca.zip
Made the "change password" thingie in settings working
Diffstat (limited to 'files/ajax')
-rw-r--r--files/ajax/rename.php2
-rw-r--r--files/ajax/upload.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/files/ajax/rename.php b/files/ajax/rename.php
index 86cb7944a88..65763fceb94 100644
--- a/files/ajax/rename.php
+++ b/files/ajax/rename.php
@@ -8,7 +8,7 @@ header( "Content-Type: application/jsonrequest" );
// Check if we are a user
if( !OC_USER::isLoggedIn()){
- echo json_encode( array( "status" => "error", "data" => "Authentication error" ));
+ echo json_encode( array( "status" => "error", "data" => array( "message" => "Authentication error" )));
exit();
}
diff --git a/files/ajax/upload.php b/files/ajax/upload.php
index 959794913b9..194d84f4be2 100644
--- a/files/ajax/upload.php
+++ b/files/ajax/upload.php
@@ -10,7 +10,7 @@ header( "Content-Type: text/plain" );
// Check if we are a user
if( !OC_USER::isLoggedIn()){
- echo json_encode( array( "status" => "error", "data" => "Authentication error" ));
+ echo json_encode( array( "status" => "error", "data" => array( "message" => "Authentication error" )));
exit();
}