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

github.com/nextcloud/nextcloud-filelink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichaelletzgus <michaelletzgus@users.noreply.github.com>2018-11-18 15:53:09 +0300
committerGitHub <noreply@github.com>2018-11-18 15:53:09 +0300
commit662f8711f2a89749747daec74e9f097870bc2054 (patch)
treee1d4279da76eda597fae90bb06033d0caf03f7a0
parent1cd2daf0da6084c9cf595047a608c02cd36fd2da (diff)
Making owncloud/Sciebo working again
See https://github.com/nextcloud/nextcloud-filelink/issues/65 Change path for retrieving userinfo from "/cloud/user" to "/cloud/users/USERNAME"
-rw-r--r--src/components/nsNextcloud.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/nsNextcloud.js b/src/components/nsNextcloud.js
index f20ab9a..f388555 100644
--- a/src/components/nsNextcloud.js
+++ b/src/components/nsNextcloud.js
@@ -39,6 +39,7 @@ Cu.importGlobalProperties(["XMLHttpRequest"]);
const kRestBase = "/ocs/v1.php";
const kAuthPath = kRestBase + "/cloud/user";
+const kInfoPath = kRestBase + "/cloud/users";
const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares";
const kWebDavPath = "/remote.php/webdav";
@@ -576,7 +577,7 @@ Nextcloud.prototype = {
let args = "?format=json";
let req = new XMLHttpRequest(Ci.nsIXMLHttpRequest);
- req.open("GET", this._fullUrl + kAuthPath + args, true);
+ req.open("GET", this._fullUrl + kInfoPath + '/' + this._userName + args, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.setRequestHeader("OCS-APIREQUEST", "true");
req.setRequestHeader("Authorization",