mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 03:20:17 +00:00
Tweak "deletion success" message and note it doesn't work
Ref T319
This commit is contained in:
parent
b092421f6e
commit
7c1c1218b1
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue