1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-22 05:10:29 +01:00

Add alias for DELETE call on accounts

Dieser Commit ist enthalten in:
Miroslav Prasil 2018-09-18 11:13:45 +01:00
Ursprung ff8eeff995
Commit f7951b44ba
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -238,6 +238,11 @@ fn post_email(data: JsonUpcase<ChangeEmailData>, headers: Headers, conn: DbConn)
} }
#[post("/accounts/delete", data = "<data>")] #[post("/accounts/delete", data = "<data>")]
fn post_delete_account(data: JsonUpcase<PasswordData>, headers: Headers, conn: DbConn) -> EmptyResult {
delete_account(data, headers, conn)
}
#[delete("/accounts", data = "<data>")]
fn delete_account(data: JsonUpcase<PasswordData>, headers: Headers, conn: DbConn) -> EmptyResult { fn delete_account(data: JsonUpcase<PasswordData>, headers: Headers, conn: DbConn) -> EmptyResult {
let data: PasswordData = data.into_inner().data; let data: PasswordData = data.into_inner().data;
let user = headers.user; let user = headers.user;

Datei anzeigen

@ -23,6 +23,7 @@ pub fn routes() -> Vec<Route> {
post_email_token, post_email_token,
post_email, post_email,
delete_account, delete_account,
post_delete_account,
revision_date, revision_date,
password_hint, password_hint,
prelogin, prelogin,