Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-21 05:00:28 +01:00
Fix field type to actually be hidden (#5082)
In an oversight i forgot to set the type to a hidden type if converting the int was not possible. This fixes that. Signed-off-by: BlackDex <black.dex@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
49c5dec9b6
Commit
65629a99f0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -186,7 +186,7 @@ impl Cipher {
|
||||||
match f.data.get("type") {
|
match f.data.get("type") {
|
||||||
Some(t) if t.is_number() => {}
|
Some(t) if t.is_number() => {}
|
||||||
Some(t) if t.is_string() => {
|
Some(t) if t.is_string() => {
|
||||||
let type_num = &t.as_str().unwrap_or("0").parse::<u8>().unwrap_or(1);
|
let type_num = &t.as_str().unwrap_or("1").parse::<u8>().unwrap_or(1);
|
||||||
f.data["type"] = json!(type_num);
|
f.data["type"] = json!(type_num);
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Laden …
In neuem Issue referenzieren