hi
The configuration of EF Core is fully applicable to abp.
https://docs.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api,fluent-api-simple-key,simple-key#many-to-many https://www.learnentityframeworkcore.com/configuration/many-to-many-relationship-configuration https://www.entityframeworktutorial.net/efcore/configure-many-to-many-relationship-in-ef-core.aspx
wait for the good news.
hi
Adding a new api to get user extra properties is the easiest.
hi
What's the user name of develop that you want to add?
Question 2: Could I remove the confirm option after customer register successfully? How could I do for it?
You can override the RegisterModel
of account pro module.
hi
Is it the default by ABP Vnext? Confirm email/phone after register successfully.
Register.cshtml.cs
if (await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedEmail) && !user.EmailConfirmed ||
await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber) && !user.PhoneNumberConfirmed)
{
return RedirectToPage("./ConfirmUser");
}
We have a fix about ConfirmUser
in 4.3.2 that will be release today or tomorrow. You can upgrade it.
hi
I think you can create an API to return the extra properties of the current user, because some extra properties may be secret and you should handle it yourself.
hi @albert
What do you think?
hi
I think we can't confirm the current user and its group before it is logged in, right? If so, we can't provide the different page.
hi