Jul 10, 2015

ASP.NET MVC 3 - Different Login Page for Authorize Attribute

<system.web>
    <authentication mode="Forms">
        <forms loginUrl="/Login/Index" />
    </authentication>
Change the loginUrl attribute to what you want it to be. Then, on the login action, select the proper view to return.

No comments:

Post a Comment