Skip to content

Commit 28d2a9b

Browse files
Making owncloud/Sciebo working again
See #65 Change path for retrieving userinfo from "/cloud/user" to "/cloud/users/USERNAME"
1 parent 0a1135f commit 28d2a9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/nsNextcloud.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Cu.importGlobalProperties(["XMLHttpRequest"]);
3939

4040
const kRestBase = "/ocs/v1.php";
4141
const kAuthPath = kRestBase + "/cloud/user";
42+
const kInfoPath = kRestBase + "/cloud/users";
4243
const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares";
4344
const kWebDavPath = "/remote.php/webdav";
4445

@@ -576,7 +577,7 @@ Nextcloud.prototype = {
576577
let args = "?format=json";
577578
let req = new XMLHttpRequest(Ci.nsIXMLHttpRequest);
578579

579-
req.open("GET", this._fullUrl + kAuthPath + args, true);
580+
req.open("GET", this._fullUrl + kInfoPath + '/' + this._userName + args, true);
580581
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
581582
req.setRequestHeader("OCS-APIREQUEST", "true");
582583
req.setRequestHeader("Authorization",

0 commit comments

Comments
 (0)