mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 06:02:10 +00:00
Changed form params to query params regarding user creation.
This commit is contained in:
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"
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user