Open Closed

How to configure so automatically goes to login page if not logged in rather than going to home page / index.html and having to click login #8285


User avatar
0
dazza_74 created

How to configure so automatically goes to login page if not logged in rather than going to home page / index.html and having to click login

  • ABP Framework version: v8.3 and v9.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

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

    Hi,

    you add [Authorize] attribute to the page model.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on June 20, 2025, 11:20