Starts in:
2 DAYS
8 HRS
37 MIN
3 SEC
Starts in:
2 D
8 H
37 M
3 S

Activities of "roberto.fiocchi"

Hi,

I tried the code you suggested but it seems like it automatically registers the user which is not the behavior that i needed. I needed to block the user from self-registering no matter the origin (local or external provider). Digging through the code i might have found a solution:

public override async Task<IActionResult> OnGetAsync()
{
    ExternalProviders = await GetExternalProviders();
    if (!await CheckSelfRegistrationAsync())
    {
        //if (IsExternalLoginOnly)
        //{
        //    return await OnPostExternalLogin(ExternalLoginScheme);
        //}

        Alerts.Warning(L["SelfRegistrationDisabledMessage"]);
        return Page();
    }

    await TrySetEmailAsync();

    return Page();
}

protected override async Task<bool> CheckSelfRegistrationAsync()
{
    EnableLocalRegister = await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin) &&
                          await SettingProvider.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled);

    //if (IsExternalLogin)
    //{
    //    return true;
    //}

    if (!EnableLocalRegister)
    {
        return false;
    }

    return true;
}

Is this a valid approach?

Thanks

Thansk fo reply.

From the issue you indicated I read that LeptonX has 3 layouts: Application, SideMenu and TopMenu.(ABP v.6) I need the Application layout

But now it seems to be no longer available, how can I restore it? https://docs.abp.io/en/commercial/latest/themes/lepton-x/blazor?UI=Blazor#updating-bundles-on-layout-changes

Hi,

If there is an option to prevent a new registration I expect that this will never happen and that the external provider will only be able to log in. How can I change the code to make my solution compliant?

Thanks,

We will await these fixes soon

Best Regards, Roberto

Hi,

We followed the guide you linked us, but we can't understand how to move the toolbar to the top of the page as shown by the next screenshot:

We would like to have a layout similar to the one in the lepton theme:

Can you help us on this?

Thanks

Using Blazor Wasm: Implement the real-time notification system already present in AspNetZero

P.S: We are having difficulties moving from AspNetZero to Abp framework with all of these features missing

Add comments or explanations to the implemented fix Example https://commercial.abp.io/releases/pr/16778

It would be nice to have a couple lines of description on what was done for each commit https://commercial.abp.io/releases/tag/8.1.0-rc.2

No, that's not what I want: I already know the top-menu layout, but that's not what I meant.

I want to add this feature in side menu layout Keeping the "side-menu layout" I want to move the toolbar on top and keep the menu on the left. The request is similar to this ticket (but I use blazor WASM instead of Angular): https://support.abp.io/QA/Questions/3746/LeptonX-Theme-Main-Header-Toolbar-in-Top-Main-Header-together-with-Main-Menu-in-Left-Sidebar

Using Blazor Wasm: Add a background worker to periodically clean old/expired audit logs from the DB, a feature already present in AspNetZero https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Audit-Logs#periodic-log-deletion

A couple of suggestions for abp suite:

  1. When a string attribute in a entity has "Required" checked but "Allow empty string" unchecked the generated code for the entity has the wrong check in the entity's contructor: It uses "Check.NotNull" that will still allow empty strings to pass even tho we dont want them In the Manager this is already correct since it uses "Check.NotNullOrWhiteSpace" which will not allow empty strings
  2. Make it so that abp suite still works when not connected to a network, it failes to get login-info and it wont start
  3. Abp suite as of now doesn't allow a string attribute to have the same minimum length and maximum length, it would be useful to have this feature since some attribute might have a fixed length.
Showing 61 to 70 of 98 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06