I'm doing some development where I need to implemented a login form in MVC. I have already created an MVC project in VS2013 which works OK. When creating it, VS already include the forms and configuration to use the LogIn as well as the register views.
the thing here is that that view use the layout.cshtml file as a master page. So, if I put the [Authorize] attribute to a method inside a controller what is happening when running the web site, is that it shows the LogIn page which is OK. But using the layout.cshtml as the master page.
Is there a way to displayed the LogIn.cshtml page in the entiry window without using the layout.cshtml?
In the web.config I have:
<authentication mode="Forms"> <forms loginUrl="Account/Login" timeout="2880" /> </authentication> But it doesn't work