diff --git a/crates/cards/src/lib.rs b/crates/cards/src/lib.rs index d47d4f33a1ca..5308718826ae 100644 --- a/crates/cards/src/lib.rs +++ b/crates/cards/src/lib.rs @@ -15,7 +15,7 @@ pub struct CardSecurityCode(StrongSecret); impl TryFrom for CardSecurityCode { type Error = error_stack::Report; fn try_from(csc: u16) -> Result { - if (1..=9999).contains(&csc) { + if (0..=9999).contains(&csc) { Ok(Self(StrongSecret::new(csc))) } else { Err(report!(errors::ValidationError::InvalidValue {