Activities of "balessi75"

Hi,

Setting definitions in the ..Account.Application project. you can add the Application project reference to the DbMigrator project.

Hi Liangshiwei,

I added our ...Application project reference to the DbMigrator project and I am still getting the same exception. The DataSeedContributer is in the Domain project. It needs to be there, correct? I tried adding a DataSeedContributer to the Application project, but DbMigrator does not discover the DataSeedContributer at runtime from that location.

We have a TemplateDefinitionProvider defined in our Domain project

hi

Can you try moving it into your Application.Contracts module?

Thank you maliming, that resolved the issue!

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!

It seems there is a styling issue on the Lepton Theme. I've added it to our backlog and We'll do it asap.

Excellent, thank you @enisn

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.

It appears that the IValidatableObject validation doesn't wrap the error "Last Name is Required" in a <span> . After looking at the Lepton css in chrome's dev tools, I found that once I wrapped the error text in a span element using Chrome, the styling was corrected.

Any workaround that can be suggested or is this a possible fix at some point?

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

hi

For 6-digit codes it is valid for 3 minutes, others default to 1 day, of course you can configure it. This belongs to ASP NET Core Identity.

https://github.com/dotnet/aspnetcore/blob/main/src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs#L16

https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.dataprotectiontokenprovideroptions.tokenlifespan?view=aspnetcore-6.0#microsoft-aspnetcore-identity-dataprotectiontokenprovideroptions-tokenlifespan

Excellent! Thank you @maliming!

Hi @balessi75

You can create abp.resourcemapping.js manually in your project. You can find the default template of it below: https://github.com/abpframework/abp/blob/b920220c672d8d1fbbbae850965bb117d8a71da1/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/abp.resourcemapping.js

module.exports = { 
    aliases: { 
 
    }, 
    clean: [ 
 
    ], 
    mappings: { 
 
    } 
}; 

After updating package.json and abp.resourcemapping.js files, abp install-lib command will work properly and copy your dependencies under wwwroot.

abp install-libs 

Hi @enisn,

We manually created a abp.resourcemapping.js file in the root of our Blazor project, but we are getting compile time errors:

Any ideas? Does the js file need to be in a certain location for a Blazor Server project?

Showing 211 to 220 of 245 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13