feat: account deletion endpoints

This commit is contained in:
2026-10-26 02:49:07 +01:00
parent 54c8433c78
commit 0beedfbf0a
14 changed files with 420 additions and 8 deletions

View File

@@ -62,6 +62,13 @@ pub struct RegisterForm {
pub csrf_token: String,
}
#[derive(Deserialize)]
pub struct DeleteAccountForm {
pub password: String,
#[serde(rename = "_csrf", default)]
pub csrf_token: String,
}
#[derive(Deserialize)]
pub struct ErrorQuery {
pub error: Option<String>,