Closed CY-Ye closed 1 week ago
Please share a small project to reproduce the problem
Please share a small project to reproduce the problem
Try something like this:
ObjectExtensionManager.Instance.Modules()
.ConfigureIdentity(identity =>
{
identity.ConfigureUser(user =>
{
user.AddOrUpdateProperty<string>( //property type: string
"SocialSecurityNumber", //property name
property =>
{
//validation rules
property.Attributes.Add(new RequiredAttribute());
property.Attributes.Add(new StringLengthAttribute(64) {MinimumLength = 4});
property.Configuration[IdentityModuleExtensionConsts.ConfigurationNames.AllowUserToEdit] = true;
//...other configurations for this property
}
);
});
});
@realLiangshiwei it is worked. thank you!
env:
abp framework: 8.0.4/8.1.1
description
I found that I couldn't update the extraProperties property of AbpUser after upgrade to 8.0.4/8.1.1. I think it bug of abp, because this bug also occurs in new projects created by abp cli 8.1.1
Test:
request:
Response body