Activities of "maliming"

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.

Good news.

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.

Showing 1 to 10 of 6569 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11