Hi,
I'm in UTC+8 time zone. I'm free now and have one hour time. If you are free, we can start.
Can we use zoom to remotely? my email shiwei.liang@volosoft.com
Can you share the auth server logs?
Hi,
See https://github.com/abpframework/abp/issues/3743
Try:
public class CustomLoginModel : LoginModel
{
public CustomLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions)
: base(schemeProvider, accountOptions)
{
}
public override async Task<IActionResult> OnPostAsync(string action)
{
try
{
await base.OnPostAsync(action);
}
catch (AbpValidationException e)
{
Alerts.Danger(e.ValidationErrors.First().ErrorMessage);
return Page();
}
return Content("");
}
}
And you need add @(await Component.InvokeAsync<ContentAlertsViewComponent>())
to your custom layout page.
Hi Try :
public class EmailSettingsPageContributor : ISettingPageContributor
{
public async Task<bool> CheckPermissionsAsync(SettingPageCreationContext context)
{
Check.NotNull(context, nameof(context));
var permissionChecker = context.ServiceProvider.GetRequiredService<IPermissionChecker>();
var result = await permissionChecker.IsGrantedAsync(MyAppPermissions.EmailSettings.Edit);
return result;
}
public async Task ConfigureAsync(SettingPageCreationContext context)
{
if (!await CheckPermissionsAsync(context))
{
return;
}
Check.NotNull(context, nameof(context));
var localizer = context.ServiceProvider.GetRequiredService<IStringLocalizer<MyAppResource>>();
context.Groups.Add(new SettingPageGroup("emailsPageGroup", localizer["Settings:Email"], typeof(EmailSettingsViewComponent)));
}
}
I can't reproduce your problem. can you share a simple project to me ? thanks. shiwei.liang@volosoft.ccom
Sorry, I don't understand what is make this as close to ABP. ABP will not restrict you. Maybe you want an elegant solution(Like: automatically query data from other databases when using repository query related data),but this is a big feature.
Hi In fact, I think it has nothing to do with ABP. Yes,you just need rely on id mapping. Since the data is not in the same database, you have to manually maintain data integrity
Hi,
You can directly extend these modules without using ABP suite to install again