Open Closed

How to change the default page to a login page? #5527


User avatar
0
lizhaofeng created
  • ABP Framework version: v7.3.0
  • UI Type:Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:

How to set up a multi-layered Blazor service project to open with a login page by default, and how to configure it to return to the login page upon logout?


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

    Hi,

    You can try to add the @attribute [Authorize] attribute to the index page.

  • User Avatar
    0
    lizhaofeng created

    hi,liangshiwei

    it works fine,thx

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11