diff --git a/frontend/src/pages/Clients.tsx b/frontend/src/pages/Clients.tsx index 6f1b1c6..e890de5 100644 --- a/frontend/src/pages/Clients.tsx +++ b/frontend/src/pages/Clients.tsx @@ -103,6 +103,13 @@ export function ClientsPage() { onError: (e: Error) => setError(e.message), }); + const resetPassword = useMutation({ + mutationFn: (username: string) => + api.post(`/mqtt/clients/${username}/password:reset`), + onSuccess: (result) => setOncePassword(result), + onError: (e: Error) => setError(e.message), + }); + const assignRole = useMutation({ mutationFn: ({ username, rolename }: { username: string; rolename: string }) => assignClientRole(username, rolename), @@ -266,6 +273,18 @@ export function ClientsPage() { ) : ( )}{" "} + {" "}