Abp Commercial 5.2.0 / Blazor Server / EF Core
Hi,
We created an extended property on the IdentityUser entity and have overriden the UserManagment.razor page. We see the the expended property is rendered with the following...
<ExtensionProperties TEntityType="IdentityUserCreateDto" TResourceType="IdentityResource" Entity="@NewEntity" LH="@LH" />
How can one make the extended property read only? Is there a configuration somewhere? Or is there a way to manually create the input without using the <ExtensionProperties>
component?
Thanks in advance, -Brian
Abp Commercial 5.2.0 / Blazor Server / EF Core / Non-tiered
Hi, We are using the ObjectExtensionManager to create a custom property on the IdentityUser entity and would like to do validation that requires an App Service call.
In the documentation (https://docs.abp.io/en/abp/latest/Object-Extensions#custom-validation) we see that custom validation can be accomplished with:
options.Validators.Add(context =>
{... }
... and that context.ServiceProvider
can be used to call an application service for advanced validation scenarios.
The problem we are having is that ObjectExtensionManager is templated to reside in the Domain.Shared project which cannot have a reference to our application services due to circular dependency issues.
Are we missing something here, or is there a better/recommended way of accomplishing what we are looking for?
Thanks in advance, Brian
Abp Commercial 5.2.0 / Blazor Server / EF Core / Non-tiered
Hi,
We have extended the IdentityUser entity with a new property but need to have the property only visible on the user listing (needs to be hidden on the create and edit modal). To accomplish this, we implemented the following in our ProjectNameModuleExtensionConfigurator class:
user.AddOrUpdateProperty<string>(
EmployeeConsts.FullName
, property =>
{
property.DisplayName = LocalizableString.Create<TimepieceResource>(
"DisplayName:FullName");
property.DefaultValue = null;
property.UI.OnCreateForm.IsVisible = false;
property.UI.OnEditForm.IsVisible = false;
property.UI.OnTable.IsVisible = true;
}
);
The extended property, however, is still visible on the create and edit modals.
Are we doing something wrong, or is this a bug?
Thanks in advance.
Hi,
Abp Commercial 5.2.0 / Blazor Server / EF / Non tiered
Please let us know if these are things that will be looked at and if there are workarounds or suggestions.
Thanks in advance, Brian
Abp Commercial 5.1.3 / Blazor Server / EF / Non-Tiered
Hi, We have a requirement as a host admin to be able to impersonate any user on any tenant and have run into a problem when testing this scenario.
Are we going about this correctly? Guidance is appreciated as always.
Abp Commercial 1.5.3 / Blazor Server / EF / Non-Tiered
Hi, We noticed that when phone verification is required to sign in, the first attempt to save the phone number at login is saved to the database before the phone number is verified. If the number is never verified, say because they typed the wrong number in, the number input recalls the previous value from the database and is then always disabled on the login UI - so the user can never correct the number to be verified.
Is this by design? And if so, I'm just curious about the rational...
Thanks in advance!
Abp Commercial 5.1.3 / Blazor Server / EF
Hi, We've added the following to the ConfigureServices method of our Domain.Shared project:
Within the Domain.Shared/Localization/Extensions we have our en.json file set as an embedded resource. In the localization file we are attempting to override the Feature:TwoFactor
localization value from the Identity Module. At runtime, however, we don't see the modified label.
We also tried putting the above code in the ConfigureServices method of our Application.Contracts project.
Any guidance is greatly appreciated.
Abp Commercial / 5.1.3 / EF / Blazor Server
Hi, How does one change a setting for a dependent module programmatically? We followed the documentation at: https://docs.abp.io/en/abp/4.4/Modules/Setting-Management#isettingmanager
We are attempting to set Abp.Account.IsSelfRegistrationEnabled to always be false for the host db only by using the SaasDataSeedContributer in our Domain project (see below). The problem is that the account module settings don't seem to be available to set as we receive the following exception when attempting to set the setting: Volo.Abp.AbpException: 'Undefined setting: Abp.Account.IsSelfRegistrationEnabled'
public virtual async Task SeedAsync(DataSeedContext context)
{
using (_currentTenant.Change(context?.TenantId))
{
await _editionDataSeeder.CreateStandardEditionsAsync();
if (context?.TenantId == null)
{
await _settingManager.SetForTenantOrGlobalAsync(null, "Abp.Account.IsSelfRegistrationEnabled", "False");
}
}
}
}
Abp Commercial 5.1.3 / Blazor Server / EF / Non-tiered
Hi, We have a TemplateDefinitionProvider defined in our Domain project and we are attempting to override the template for the built in email confirmation link. At runtime, however, the context of the provider only has "Abp.StandardEmailTemplates.Layout" and "Abp.StandardEmailTemplates.Message" available in it's collection. In our code below, emailLayoutTemplate is always null. Is there something missing here or are we taking an incorrect approach?
public class EmailTemplateDefinitionProvider : TemplateDefinitionProvider, ITransientDependency
{
public override void Define(ITemplateDefinitionContext context)
{
var emailLayoutTemplate = context.GetOrNull("Abp.Account.EmailConfirmationLink");
if (emailLayoutTemplate == null)
{
We are not using the Text Templating Management Module because we want to maintain one template for all tenants (each tenant has its own separate database).
Thanks as always!
Abp Commercial / 5.1.3/ EF / Blazor Server / Non-tiered
Hi - We updated the default text for the email confirmation text template with the word "test"...
...however, when we send an email during registration of a new user, the Abp default text gets emailed not our saved text of "test". Is there another configuration step to override the default email confirmation text? It is not clear from the documentation.