Enabled unused variable warning again, fixed some possible bugs where we didn't check some parameters, and explicitly marked all unused parameters (mostly orgheaders)

This commit is contained in:
Daniel García
2018-05-30 22:30:45 +02:00
parent cbe73a31ea
commit 1a4b1a8254
6 changed files with 41 additions and 20 deletions

View File

@@ -157,7 +157,7 @@ fn activate_authenticator(data: Json<EnableTwoFactorData>, headers: Headers, con
struct DisableTwoFactorData {
masterPasswordHash: String,
#[serde(rename = "type")]
type_: NumberOrString,
_type: NumberOrString,
}
#[post("/two-factor/disable", data = "<data>")]