Activities of "balessi75"

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.

  • As a host admin, we can successfully impersonate any tenant
  • Once we impersonate a tenant, we are always logged into that tenant as it's Admin user
  • Now we want to impersonate a standard user in that tenant, but when we do so, the option to impersonate a user is not available even though the tenant Admin has impersonate permissions.
  • If we login directly to the tenant as an admin without being impersonated from the host, then the impersonate user option is available.

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.

Hi, We are using Abp Commercial 5.1.3 / EF / Blazor Server / Non-Tiered.

With a newly created project from Abp Suite, we get the following when keying in blank spaces into an input on either login or registration.

We overrode the register razor page, to enhance the validation and get a better understanding how it works in Abp. The input model in Abp has the Required attribute defined for each input field, but blank spaces are not picked up by the UI and the RegisterLocalUserAsync method just exceptions out with an invalid model. So it is unclear to us what the recommended approach here is.

We followed: https://docs.abp.io/en/abp/4.4/Validation#validation ... and implemented the following in Register.cshtml.cs

 public IEnumerable<ValidationResult> Validate(
           ValidationContext validationContext)
        {
            if (FirstName.Trim() == String.Empty)
            {
                yield return new ValidationResult(
                    "First Name must be specified",
                    new[] { "FirstName" }
                );
            }
        }

This kind of worked once we caught the validation exception, but this validation is all server side and not client side like when the inputs are null and the 'Required' attribute is set in the data model. Additionally the UI is lacking and not consistent when we do this validation.

For example, the built in required validation looks correct, like this:

but the server side validation to accommodate blank spaces is styled like this...

Any help or recommendations you have is greatly appreciated.

Regards, @balessi75

Abp Commercial 5.1.3 / EF / Non-Tiered / Blazor Server

Is there an expiration on the confirm email link, password reset link, or 2 factor code in Abp? If so what is it's default expiration time and how can it be changed and or implemented (if not provided by Abp)?

Hi, We are using Abp Commercial 5.1.3 - Blazor Server. We need to override Abp's Register.cshtml page which we have successfully done.

We have a requirement, however, to utilize an existing Blazor Component (Telerik UI for Blazor) in the overriden Register.cshtml page in our Blazor Server solution. By default this does not appear to be possible because the Register page is an MVC page. Is it possible to accomplish this? And if so, what would be the steps to make this scenario work?

Thanks in advance, balessi75

Abp Commercial 5.1.3

We have a requirement to override the Register.cshtml page by adding a DateOfBirth input field. It is defined as follows..

The field works as expected, except for the fact that it's value is cleared on post when when the Register App Service returns a user friendly exception and the user friendly error is shown at the top of the register dialog. All other input fields retain their value.

Is there something simple I'm missing here? Any work arounds to get the input to retain it's selected date when posting with validation errors?

Showing 31 to 40 of 48 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13