Increase max number of extra profile fields to 20

This commit is contained in:
silverpill 2022-04-20 14:06:01 +00:00
parent 997d9257af
commit e4c5440ec2

View file

@ -56,8 +56,8 @@ pub fn clean_extra_fields(extra_fields: &[ExtraField])
})
.filter(|field| !field.name.is_empty())
.collect();
if cleaned_extra_fields.len() >= 10 {
return Err(ValidationError("at most 10 fields are allowed"));
if cleaned_extra_fields.len() > 20 {
return Err(ValidationError("at most 20 fields are allowed"));
};
Ok(cleaned_extra_fields)
}