This project is read-only.

Login Page As StartUp Page

Topics: Customizing Orchard, Installing Orchard
Nov 5, 2014 at 4:37 AM
Can anyone please tell me how to set the LOGIN Page as the startup page, i.e; When the project loads it should directly go to the login page.

Thanks in advance.
Nov 5, 2014 at 8:15 PM
One idea that comes to mind is by setting an Alias on the root path to Users/Account/LogOn using the Alias UI feature. However, the Orchard login page is programmed such that it redirects to the home page if the user is already logged in. But since the home page IS the login page this will cause an infinite redirect loop.
So that won't work, unless you write your own login page controller.

A simpler option is to implement an action filter that simply redirects unauthenticated users to the login page.