Fixed case problems, hopefully this time for real

This commit is contained in:
Daniel García
2018-06-12 23:01:14 +02:00
parent 538dc00234
commit 410ee9f1f7
3 changed files with 76 additions and 16 deletions

View File

@ -6,8 +6,6 @@ use db::models::*;
use api::{PasswordData, JsonResult, EmptyResult, JsonUpcase};
use auth::Headers;
use util;
use CONFIG;
#[derive(Deserialize, Debug)]
@ -15,7 +13,6 @@ use CONFIG;
struct RegisterData {
Email: String,
Key: String,
#[serde(deserialize_with = "util::upcase_deserialize")]
Keys: Option<KeysData>,
MasterPasswordHash: String,
MasterPasswordHint: Option<String>,

View File

@ -363,7 +363,6 @@ fn post_collections_admin(uuid: String, data: JsonUpcase<CollectionsAdminData>,
#[derive(Deserialize)]
#[allow(non_snake_case)]
struct ShareCipherData {
#[serde(deserialize_with = "util::upcase_deserialize")]
Cipher: CipherData,
CollectionIds: Vec<String>,
}