hi
Does the OpenIddictApplications
tables has any data?
What are the error logs from the authserver project?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks.
hi
Do you have OpenIddictDataSeedContributor
in your solution?
If not, Please create a new project and copy the OpenIddictDataSeedContributor
file.
Thanks.
A better version would be:
protected virtual void ValidateDefaultConnectionString(ValidatorEventArgs e)
{
if (ConnectionStrings.Default.IsNullOrWhiteSpace())
{
e.Status = ValidationStatus.Success;
return;
}
e.Status = !ConnectionStrings.UseSharedDatabase && ConnectionStrings.Default.IsNullOrWhiteSpace()
? ValidationStatus.Error
: ValidationStatus.Success;
e.ErrorText = e.Status == ValidationStatus.Error ? L["The {0} field is required.", L[$"DisplayName:{nameof(ConnectionStrings.Default)}"]] : null;
}
If you select the Use the shared database
UI element will show up and we will check the ConnectionStrings.Default
hi
when replacing the component - the replaced component is only used when switched to wasm. when still rendering on blazor server - the component does not get replaced :-| (that's maybe worth another issue)
Your custom component needs to add both MyProject
and MyProject.Client
projects.
eg: Add a component class in both projects, OR Add this component class to MyProject.Client
, and then manually add it to the DI in MyProject
.
Because the web app actual two projects. One is Blazor Server
and the other is Blazor WebAssembly (WASM)
.
hi
You can add try catch
when calling the application service in your razor page
. Because your page
return type is page(IActionResult)
instead of object
.
public virtual async Task<IActionResult> OnPostAsync()
{
try
{
await AppService....
}
catch (UserFriendlyException e)
{
Alerts.Danger(L["Your messag"]);
return Page();
}
}
Thanks.
hi
You can add your MySettingDefinitionProvider
to get and change the EmailSettingProvider
's SettingDefinition
Example: Change the default password policy.
public class ChangeIdentityPasswordPolicySettingDefinitionProvider : SettingDefinitionProvider
{
public override void Define(ISettingDefinitionContext context)
{
var requireNonAlphanumeric = context.GetOrNull(IdentitySettingNames.Password.RequireNonAlphanumeric);
if (requireNonAlphanumeric != null)
{
requireNonAlphanumeric.DefaultValue = false.ToString();
}
var requireLowercase = context.GetOrNull(IdentitySettingNames.Password.RequireLowercase);
if (requireLowercase != null)
{
requireLowercase.DefaultValue = false.ToString();
}
var requireUppercase = context.GetOrNull(IdentitySettingNames.Password.RequireUppercase);
if (requireUppercase != null)
{
requireUppercase.DefaultValue = false.ToString();
}
var requireDigit = context.GetOrNull(IdentitySettingNames.Password.RequireDigit);
if (requireDigit != null)
{
requireDigit.DefaultValue = false.ToString();
}
}
}
hi
You can send an email to info@abp.io to request refund.
Thanks
hi
Can you try this?
https://abp.io/support/questions/8933/Intermittent-Login-Failure-After-Upgrading-ABP-Framework-to-v9#answer-3a189b11-6314-b51d-08de-b775c7bdf450
Thanks