fix: remove forbidden characters from userId

pull/12/head
c-cal 5 years ago
parent add4078c23
commit 0b77cc7000
Signed by: watcha
GPG Key ID: 87DD78E7F7A1581D
  1. 3
      src/UsersTab.js

@ -101,7 +101,8 @@ export default () => {
.replace("@", "/")
.normalize("NFKD")
.replace(/[\u0300-\u036F]/g, "")
.toLowerCase();
.toLowerCase()
.replace(/[^a-z0-9=_-./]/g, "");
post({
admin: data.isSynapseAdministrator ? "admin" : false,
email: data.emailAddress,

Loading…
Cancel
Save