hi
Your code is no problem.
hi
We would like to make the Emailid column nullable.
This may break many functions of the system. You can set the email field to a regular value, eg username@yourdomain.com
hi
What steps and code have you applied to the layout/theme?
Can you share the csproj file content for your web project?
hi
Inject the ICurrentPrincipalAccessor and IUserClaimsPrincipalFactory<IdentityUser>
var identityUser =
using (CurrentPrincipalAccessor.Change(await UserClaimsPrincipalFactory.CreateAsync(identityUser)))
{
}
hi
You have changed the user entity. but the CurrentUser values from HttpContext.User
The HttpContext.User values come from cookies or jwt token. They are static in the current request and will update from the user entity in the next HTTP request.
That's why you have to change the current principal
hi
You can only change the current principal.
hi
Both Dynamic C# API Client Proxies and Static C# API Client Proxies can be used.
https://abp.io/support/questions/1727/How-to-build-winform-application-client-for-Dynamic-C-API-Client-Proxies
hi
You can share your project via https://wetransfer.com/
liming.ma@volosoft.com
Thanks.
hi
You can try
BundleManager to remove the WatchChangesThanks.
hi
isGranted variable doesn't relfect the latest value when role is updated in this method before get to this line,
You can Changing the Current Principal and then check the permission.
https://abp.io/docs/latest/framework/infrastructure/current-user#changing-the-current-principal
The permission check will use the values from CurrentUser.