Improve GroupEdit, username input with validation and alerts

This commit is contained in:
Nathan Barber
2021-05-10 12:02:19 -04:00
parent 5409983e4a
commit 16c37cd5fe
5 changed files with 206 additions and 36 deletions

View File

@@ -32,6 +32,7 @@ const withAPI = withProps((props) => ({
admin,
}),
deleteUser: (username) => jhapiRequest("/users/" + username, "DELETE"),
findUser: (username) => jhapiRequest("/users/" + username, "GET"),
failRegexEvent: () =>
alert(
"Cannot change username - either contains special characters or is too short."