vaultwarden/src
Mathijs van Veluw 49c5dec9b6
Fix iOS sync by converting field types to int (#5081)
It seems the iOS clients are not able to handle the `type` key within the `fields` array when they are of the type string.
All other clients seem to handle this just fine though.

This PR fixes this by validating it is a number, if this is not the case, try to convert the string to a number, or return the default of `1`.
`1` is used as this is the type `hidden` and should prevent accidental data disclosure.

Fixes #5069

Possibly Fixes #5016
Possibly Fixes #5002

Signed-off-by: BlackDex <black.dex@gmail.com>
2024-10-13 20:25:09 +02:00
..
api Updates and collection management fixes (#5072) 2024-10-11 18:42:40 +02:00
db Fix iOS sync by converting field types to int (#5081) 2024-10-13 20:25:09 +02:00
static Actually use Device Type for mails (#4916) 2024-09-18 19:03:15 +02:00
auth.rs Add extra linting (#4977) 2024-09-23 20:25:32 +02:00
config.rs Fix --version from failing without config (#5055) 2024-10-11 18:58:25 +02:00
crypto.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
error.rs Add extra linting (#4977) 2024-09-23 20:25:32 +02:00
http_client.rs Add extra linting (#4977) 2024-09-23 20:25:32 +02:00
mail.rs Actually use Device Type for mails (#4916) 2024-09-18 19:03:15 +02:00
main.rs Fix --version from failing without config (#5055) 2024-10-11 18:58:25 +02:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs Add extra linting (#4977) 2024-09-23 20:25:32 +02:00