Tweak "deletion success" message and note it doesn't work

Ref T319
pull/204/head
Matt Baer 4 years ago
parent b092421f6e
commit 7c1c1218b1
  1. 3
      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"}
}

Loading…
Cancel
Save