mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2026-02-10 23:20:15 +00:00
Automatically set the homeserver for a new user (#184)
and enhance form validation
This commit is contained in:
parent
79ef38ee6b
commit
1a17d3e69b
4 changed files with 24 additions and 12 deletions
|
|
@ -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",
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue