From 7c1c1218b1fcbd7670848c0b544a000efd8eeb0f Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 22 Apr 2021 12:45:55 -0400 Subject: [PATCH] Tweak "deletion success" message and note it doesn't work Ref T319 --- account.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account.go b/account.go index 66a9d24..6369d47 100644 --- a/account.go +++ b/account.go @@ -1172,7 +1172,8 @@ func handleUserDelete(app *App, u *User, w http.ResponseWriter, r *http.Request) return impart.HTTPError{http.StatusInternalServerError, fmt.Sprintf("Could not delete account: %v", err)} } - _ = addSessionFlash(app, w, r, "Account deleted successfully, sorry to see you go.", nil) + // FIXME: This doesn't ever appear to the user, as (I believe) the value is erased when the session cookie is reset + _ = addSessionFlash(app, w, r, "Thanks for writing with us! You account was deleted successfully.", nil) return impart.HTTPError{http.StatusFound, "/me/logout"} }