File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ Cu.importGlobalProperties(["XMLHttpRequest"]);
3939
4040const kRestBase = "/ocs/v1.php" ;
4141const kAuthPath = kRestBase + "/cloud/user" ;
42+ const kInfoPath = kRestBase + "/cloud/users" ;
4243const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares" ;
4344const 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" ,
You can’t perform that action at this time.
0 commit comments