Automatically set the homeserver for a new user (#184)

and enhance form validation
This commit is contained in:
Dirk Klimpel
2021-11-15 20:57:38 +01:00
committed by GitHub
parent 79ef38ee6b
commit 1a17d3e69b
4 changed files with 24 additions and 12 deletions

View File

@@ -41,7 +41,9 @@ const resourceMap = {
data: "users",
total: json => json.total,
create: data => ({
endpoint: `/_synapse/admin/v2/users/${data.id}`,
endpoint: `/_synapse/admin/v2/users/@${data.id}:${localStorage.getItem(
"home_server"
)}`,
body: data,
method: "PUT",
}),