Skip to content

Commit

Permalink
Update NewAccount.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
YugiFanGX committed Oct 15, 2018
1 parent 785a2d4 commit 3e15cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/nextcloud/NewAccount.qml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Item {
}
var url = host + "/ocs/v2.php/cloud/user";
request.open("GET", url, true);
request.setRequestHeader("Authorization", "Basic " + Qt.btoa(encodeURIComponent(username) + ":" + encodeURIComponent(password)));
request.setRequestHeader("Authorization", "Basic " + Qt.btoa(username + ":" + password));
request.setRequestHeader("OCS-APIRequest", "true");
request.send(null);
}
Expand Down

0 comments on commit 3e15cdd

Please sign in to comment.