feat: member edit page

This commit is contained in:
Sam 2023-03-14 17:06:35 +01:00
parent 3678f5a3e8
commit ec6043df30
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 446 additions and 4 deletions

View file

@ -44,8 +44,11 @@
try {
await apiFetchClient<any>("/users/@me", "DELETE");
userStore.set(null);
localStorage.removeItem("pronouns-token");
localStorage.removeItem("pronouns-user");
toggleDeleteOpen();
goto("/auth/logout");
goto("/");
} catch (e) {
deleteUsername = "";
deleteError = e as APIError;