diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 18d1b998..da0cb068 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -380,8 +380,8 @@ pub async fn update_cipher_from_data( } if let Some(note) = &data.Notes { - if note.len() > 10_000 { - err!("The field Notes exceeds the maximum encrypted value length of 10000 characters.") + if note.len() > 50_000 { + err!("The field Notes exceeds the maximum encrypted value length of 50000 characters.") } } diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs index 3ed3401a..db11b111 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -82,11 +82,11 @@ impl Cipher { let mut validation_errors = serde_json::Map::new(); for (index, cipher) in cipher_data.iter().enumerate() { if let Some(note) = &cipher.Notes { - if note.len() > 10_000 { + if note.len() > 50_000 { validation_errors.insert( format!("Ciphers[{index}].Notes"), serde_json::to_value([ - "The field Notes exceeds the maximum encrypted value length of 10000 characters.", + "The field Notes exceeds the maximum encrypted value length of 50000 characters.", ]) .unwrap(), );