Hi all, I need to deny all access to any controller if they do not login. I do not want to do this for each entry:
[Authorize]
public ActionResult AnyMethod() {
...
}
I try something like that but this was denied access to everything (css, js, ...).
<authorization>
<deny users="?"/>
</authorization>
In the Web.config I have only this code:
<authentication mode="Forms">
<forms loginUrl="Account/Login"></forms>
</authentication>
Thank you