Open Closed

How to set up a default Tenant? Need help locating login page on template to set up default tenant #4980


User avatar
1
christian@extranerds.com created

Currently using ABP Framework version v7.0.1 on IIS with UI type Blazor and DB provider EF Core. My goal is to set up a default tenant instead of starting with the host. However, I'm unable to locate the login page on the template, which would make it easier for me to make this change. Additionally, I have specific changes that need to be made to the login page, and being able to edit it directly would simplify the process. Can you provide me with access to the login page or guide me on how to locate it on the template?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can override the LoginModel.

    https://support.abp.io/QA/Questions/160/How-to-customize-an-ABP-project

    public class LoginModel : AccountPageModel
    
    account/src/Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.cs
    

    If you use OpenIddict

    [ExposeServices(typeof(LoginModel))]
    public class OpenIddictSupportedLoginModel : LoginModel
    
    abp/account/src/Volo.Abp.Account.Pro.Public.Web.OpenIddict/Pages/Account/OpenIddictSupportedLoginModel.cs
    
  • User Avatar
    0
    christian@extranerds.com created

    Could you provide further details? I'm utilizing OpenIddict. Is there a specific location where I can access the source code for easier customization?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can download the account pro source code.

    abp get-source Volo.Account.Pro

    https://support.abp.io/QA/Questions/632/How-can-I-download-the-source-code-of-the-framework-Angular-packages-theme-and-pro-modules

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11