Hi,
Could you share the application logs? thanks.
Hi,
It's interesting.
Actually I have no idea about this.
You can consider logging when resetting the password to ensure that the reset password link is not sent by the application.
And record the Http request header information to check the client sending the request.
Hi,
You can try this. please let me know if it works.
Add patch.js
to the wwwroot
folder(in the Blazor project)
window.resetLeptonXToolbar = function () {
leptonx.init.initializers[5]();
}
Add script to index.html
Override component
[ExposeServices(typeof(MainHeaderToolbarUserMenu))]
public class MyMainHeaderToolbarUserMenu : MainHeaderToolbarUserMenu
{
protected async override Task OnInitializedAsync()
{
await SetUserMenuAndProfileAsync();
Navigation.LocationChanged += OnLocationChanged;
ApplicationConfigurationChangedService.Changed += ApplicationConfigurationChanged;
}
private async void ApplicationConfigurationChanged()
{
await SetUserMenuAndProfileAsync();
await InvokeAsync(StateHasChanged);
}
private async Task SetUserMenuAndProfileAsync()
{
UserMenu = await MenuManager.GetAsync(StandardMenus.User);
UserId = CurrentUser.Id;
UserName = CurrentUser.UserName;
UserFullName = CalculateUserFullName();
UserEmail = CurrentUser.Email;
TenantName = CurrentTenant.Name;
if (UserId != null)
{
ProfileImageUrl = RemoteServiceOptions.Value.RemoteServices.GetConfigurationOrDefaultOrNull("AbpAccountPublic")?.BaseUrl.EnsureEndsWith('/') +
$"api/account/profile-picture-file/{UserId}";
}
await JsRuntime.InvokeVoidAsync("resetLeptonXToolbar");
}
public new void Dispose()
{
Navigation.LocationChanged -= OnLocationChanged;
ApplicationConfigurationChangedService.Changed -= ApplicationConfigurationChanged;
}
}
Also, I am still receiving responses in the Network tab of chrome that says "user is not logged in"
This is the design of Blazor, you can ignore it.
I am still having issues with the admin profile icon that does not work when I click on it. It only works after refreshing the page.
I will check it.
BTW, your ticket was refunded..
Hi,
Will it work if you try this(in the Blazor project)?
[ExposeServices(typeof(MainMenuProvider))]
public class MyMainMenuProvider : MainMenuProvider
{
private readonly IMenuManager _menuManager;
public MyMainMenuProvider(IMenuManager menuManager,
IObjectMapper<AbpAspNetCoreComponentsWebLeptonXThemeModule> objectMapper) : base(menuManager, objectMapper)
{
_menuManager = menuManager;
}
public override async Task<MenuViewModel> GetMenuAsync()
{
var menu = await _menuManager.GetMainMenuAsync();
//Menu = _objectMapper.Map<ApplicationMenu, MenuViewModel>(menu);
var result = new MenuViewModel
{
Menu = menu,
Items = menu.Items.Select(CreateMenuItemViewModel).ToList()
};
result.SetParents();
return result;
}
private MenuItemViewModel CreateMenuItemViewModel(ApplicationMenuItem applicationMenuItem)
{
var viewModel = new MenuItemViewModel
{
MenuItem = applicationMenuItem,
Items = new List<MenuItemViewModel>()
};
foreach (var item in applicationMenuItem.Items)
{
viewModel.Items.Add(CreateMenuItemViewModel(item));
}
return viewModel;
}
}
Hi,
We have an example to help you to check LDAP settings:
https://github.com/abpframework/abp-samples/tree/master/AbpLdapSample
Hi,
I think you should get help from the OpenIddict repo. :) https://github.com/openiddict/openiddict-core
Hi,
I will check it
Hi,
When using a static proxy, the API definition is loaded from the ...generate-proxy.json
JSON file and does not need to be obtained by the gateway.
Maybe I didn't understand you well, please let me know. thanks
Hi,
It looks like a problem with EF Core, not ABP.
Will it work if you use a net core application without ABP?