Entire Site Behind Login Help -- Nop 2.5

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I want to make all of my users login before they are able to access any of my pages.  I know how to do this in Forms but MVC and Razor are still very new to me.  Can anyone tell me how to redirect all unauthenticated users to the login page for the entire site, including the homepage?  Thanks in advance for your help.
11 years ago
HPDesign wrote:
I want to make all of my users login before they are able to access any of my pages.  I know how to do this in Forms but MVC and Razor are still very new to me.  Can anyone tell me how to redirect all unauthenticated users to the login page for the entire site, including the homepage?  Thanks in advance for your help.


It is very easy in MVC. Just add [Authorize] filter to the actions or the controllers.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.