ok, Let me check it again.
hi
with token invalid error.
Can you share the full error?
ABP will use EF Core to connect your database
Maybe you can check this: https://learn.microsoft.com/en-us/azure/azure-sql/database/azure-sql-dotnet-entity-framework-core-quickstart?view=azuresql&tabs=dotnet-cli%2Cservice-connector%2Cportal
hi
You can create a new question and share your case details.
Thanks
hi
Can you try this?
https://abp.io/support/questions/8169/Bug-in-Localization-logic-causes-feature-management-to-fail#answer-3a15e3a5-c2a2-f2ab-d71c-cbb1772281c4
hi
Can you share a minimal project to reproduce?
liming.ma@volosoft.com
Thanks.
ok, I will fix this and share a temporary solution.
Thanks.
Yes. Correct. : )
hi
You should get the user, user roles from UserManager based on the CurrentUser.Id
var user = await _identityUserManager.GetByIdAsync(CurrentUser.GetId());
Then check the user roles to add your logic. For example, you could add or remove a role from the user.
if you want to return a string message. you can get it from user entity instead of CurrentUser.
the user entity has a higher priority than the CurrentUser.
In short, the CurrentUser is used to get the user entity.