mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-11 12:03:00 +00:00
Fix bug on validateUser / housekeeping
This commit is contained in:
@@ -34,7 +34,7 @@ const withAPI = withProps((props) => ({
|
||||
deleteUser: (username) => jhapiRequest("/users/" + username, "DELETE"),
|
||||
findUser: (username) => jhapiRequest("/users/" + username, "GET"),
|
||||
validateUser: (username) =>
|
||||
findUser(username)
|
||||
jhapiRequest("/users/" + username, "GET")
|
||||
.then((data) => data.status)
|
||||
.then((data) => (data > 200 ? false : true)),
|
||||
failRegexEvent: () =>
|
||||
|
Reference in New Issue
Block a user