Add delete link to account page

This commit is contained in:
Emi Tatsuo 2020-12-15 19:23:24 -05:00
parent 65fe416973
commit bfaa81d9d0
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -407,7 +407,9 @@ fn render_settings_menu<UserData: Serialize + DeserializeOwned>(
.add_blank_line()
.add_link("/account/password", if user.has_password() { "Change password" } else { "Set password" });
document.into()
document
.add_link("/account/delete", "Delete your account")
.into()
}
fn render_unauth_page<'a>(