From 79ef38ee6b6e01c2512df03b48aed046e7a51d61 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 15 Nov 2021 20:40:05 +0100 Subject: [PATCH] Enable modify user `external_ids` (#179) * Enable modify user `external_ids` * add input validation --- README.md | 2 +- src/components/users.js | 25 ++++++++++++++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 96ab28c..dbc4ded 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/). -It needs at least Synapse v1.38.0 for all functions to work as expected! +It needs at least Synapse v1.41.0 for all functions to work as expected! You get your server version with the request `/_synapse/admin/v1/server_version`. See also [Synapse version API](https://matrix-org.github.io/synapse/develop/admin_api/version_api.html). diff --git a/src/components/users.js b/src/components/users.js index c954416..cdd8768 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -37,6 +37,7 @@ import { DeleteButton, SaveButton, regex, + required, useTranslate, Pagination, CreateButton, @@ -262,6 +263,16 @@ export const UserCreate = props => ( + + + + + + ); @@ -339,16 +350,16 @@ export const UserEdit = props => { icon={} path="sso" > - - - - + + + - - + +