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
    Fullstack Developer

    Hi,

    you add [Authorize] attribute to the page model.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 09, 2026, 07:22
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.