Automatically set the homeserver for a new user (#184)
and enhance form validation
This commit is contained in:
@@ -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",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user