diff options
author | Daniel García <[email protected]> | 2018-06-01 00:18:50 +0200 |
---|---|---|
committer | Daniel García <[email protected]> | 2018-06-01 00:18:50 +0200 |
commit | 5ec728683eed6326da2eb5af28136c1fc93ffa96 (patch) | |
tree | 34f374973388ffb634f0c5b5747fa579b08b4afd /src/api/mod.rs | |
parent | faa26ab8f539d5cb19ff7382e8fd4075c2eea564 (diff) | |
download | vaultwarden-5ec728683eed6326da2eb5af28136c1fc93ffa96.tar.gz vaultwarden-5ec728683eed6326da2eb5af28136c1fc93ffa96.zip |
Make sure the inputs are always in the same case (PascalCase, which is what upstream seems to prefer most of the time)
Diffstat (limited to 'src/api/mod.rs')
-rw-r--r-- | src/api/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index ed0a82d3..f5cc71e2 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -15,11 +15,14 @@ use rocket_contrib::Json; type JsonResult = Result<Json, BadRequest<Json>>; type EmptyResult = Result<(), BadRequest<Json>>; +use util; +type JsonUpcase<T> = Json<util::UpCase<T>>; + // Common structs representing JSON data received #[derive(Deserialize)] #[allow(non_snake_case)] struct PasswordData { - masterPasswordHash: String + MasterPasswordHash: String } #[derive(Deserialize, Debug)] |