This commit is contained in:
iFargle
2023-03-17 14:20:32 +09:00
parent bc7077221b
commit 7883a2dd65

View File

@@ -433,7 +433,7 @@ def add_user():
user_name = escape(json_response['name'])
url = headscale.get_url()
api_key = headscale.get_api_key()
json_data = json.loads({"name": "'+user_name+'"})
json_data = json.loads('{"name": '+user_name+'}')
return headscale.add_user(url, api_key, json_data)