hi
You can try with the code below.
[UnitOfWork]
public override Task<IActionResult> OnPostAsync(string action)
{
await IdentityOptions.SetAsync();
var user = await UserManager.FindByNameAsync(LoginInput.UserNameOrEmailAddress) ??
await UserManager.FindByEmailAsync(LoginInput.UserNameOrEmailAddress);
if (user == null)
{
return await base.OnPostAsync(action);
}
var result = await UserManager.CheckPasswordAsync(user, LoginInput.Password);
if (!result)
{
return await base.OnPostAsync(action);
}
var userRoles = await UserManager.GetRolesAsync(user);
//Check the user roles
return await base.OnPostAsync(action);
}
hi
The UPPY_UPLOAD_ENDPOINT
endpoint is @Url.Content("~/api/account/profile-picture")
The abp.security.antiForgery.tokenHeaderName
header is for CSRF/XSRF & Anti Forgery
hi
Run dotnet ef migrations add ABP8
command in your MyProjectName.EntityFrameworkCore
project.
Run MyProjectName.DbMigrator
app or dotnet ef database update
command to update the database.
See https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli
hi
Please add/update new EF Core migrations.
hi
You can login a tenant admin user to change these LDAP settings.
hi
Can you share a project?
Or please share all logs.txt of your all projects.
Thanks
You can share files via https://wetransfer.com/
liming.ma@volosoft.com
hi
The required policy
can be a permission name, if you want to hide/show a menu based on permission, You should define and check it.
https://docs.abp.io/en/abp/latest/Authorization#permission-system
hi
You only need to adjust the quality
parameters to change the size of the image.
e.g. 0.85, 0.8.