hi
Can you try to run suite by abp suite
command?
hi
. if a user is not a backend user/company user but a consumer than we want to configure mobile OTP based authentication and for company/tenant backend user , we want to use user name password authentication. Please suggest how to achieve this.
You can add a new page to let the user enter the username, then check the user type and redirect it to your OTP or password page.
You can also do this function on one page. This is based on yours.
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.