Changed form params to query params regarding user creation.

This commit is contained in:
Leon Radeck committed 2018-01-13 11:54:12 +01:00
1 parent a148993fad
commit 2a336dd336
1 file changed
+1 -2
@@ -47,8 +47,7 @@ function change_admin_password(){
# -----------------------------------------------------------
function create_new_user(){
local_echo "Creating new user \"$4\" with password \"$5\"..."
curl_wrapper -X POST -H "Authorization: Bearer $1" "http://$2:$3/security/api/restsecurity/create_user" \
--data "username=$4" --data "password=$5"
curl_wrapper -X POST -H "Authorization: Bearer $1" "http://$2:$3/security/api/restsecurity/create_user?username=$4&password=$5"
}
# -----------------------------------------------------------