Increase max number of extra profile fields to 20
This commit is contained in:
parent
997d9257af
commit
e4c5440ec2
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ pub fn clean_extra_fields(extra_fields: &[ExtraField])
|
||||||
})
|
})
|
||||||
.filter(|field| !field.name.is_empty())
|
.filter(|field| !field.name.is_empty())
|
||||||
.collect();
|
.collect();
|
||||||
if cleaned_extra_fields.len() >= 10 {
|
if cleaned_extra_fields.len() > 20 {
|
||||||
return Err(ValidationError("at most 10 fields are allowed"));
|
return Err(ValidationError("at most 20 fields are allowed"));
|
||||||
};
|
};
|
||||||
Ok(cleaned_extra_fields)
|
Ok(cleaned_extra_fields)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue