Learn More, Pay Less!
Limited Time Offer!
Open Closed

Changes to the abp angular login page #8632


User avatar
0
sahanaacharya created

ABP Framework version: v8.3

UI Type: Angular

Database System: EF Core (PostgreSQL)

Tiered (for MVC) or Auth Server Separated (for Angular): yes/no

Exception message and full stack trace:

Steps to reproduce the issue:

Hi Team,

We would want to modify the below on login page

  1. to change the logo
  2. to change the title
  3. to remove register
  4. to remove forget password password

Please could you let us know the steps, the files and the location of the files to be changed.

Regards Sahana


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

    Hi,

    to change the logo to change the title

    You can change them via YourProjectNameBrandingProvider https://abp.io/docs/latest/framework/ui/mvc-razor-pages/branding

    to remove register

    You can disable self-registration

    to remove forget password password

    1 You can override the login page to remove forget password password

    • Here is the document to explain how to override UI: https://abp.io/docs/latest/framework/ui/mvc-razor-pages/customization-user-interface
    • You can download the source code via abp suite

    2 Override the forget password page model

    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(ForgotPasswordModel))]
    public class MyForgotPasswordModel : ForgotPasswordModel
    {
        public override Task<IActionResult> OnGetAsync()
        {
            return Task.FromResult<IActionResult>(NotFound());
        }
    
        public override Task<IActionResult> OnPostAsync()
        {
            return Task.FromResult<IActionResult>(NotFound());
        }
    }
    
  • User Avatar
    0
    sahanaacharya created

    Hi,

    1. The solution provided for the below is for mvc razor pages. we need it for angular

    to change the logo to change the title

    1. to remove register

    this would be a UI setting change. what if i want it to be a generalized setting

    1. to remove forget password password

    The solution provide is for mvc and we need it for angular.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    The angular uses code flow to login, it will redirect to the back-end (MVC)

Made with ❤️ on ABP v9.2.0-preview. Updated on February 17, 2025, 05:40