Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Fix creating nextcloud account with password containing special chara…
Browse files Browse the repository at this point in the history
…cters
  • Loading branch information
jonnius committed Sep 7, 2018
1 parent 10c4a62 commit 87ed689
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(encodeURIComponent(username) + ":" + password));
request.setRequestHeader("OCS-APIRequest", "true");
request.send(null);
}
Expand Down

0 comments on commit 87ed689

Please sign in to comment.