I am working in this MVC app made by others, every page requires you to login first. How do I set one of my controllers to work without having to be logged in? At first I thought this was due to the master page but when I removed the master page it still redirects to login when they first browse to the controller action. Is this set in the web.config still like traditional asp.net webforms?
views:
40answers:
1
+1
A:
In the action method that you want to access remove the attribute
[Authorize]
that is before it.
eKek0
2009-09-22 02:20:42
You can also apply this to the Controller left rather than a single Action method.
David Liddle
2009-09-22 07:46:05
* Controller declaration
David Liddle
2009-09-22 07:46:49
I think I am using a custom base class for the controllers that my fellow devs made, do you think it could be in there?
shogun
2009-09-22 14:32:24
Yes, of course.
eKek0
2009-09-23 00:12:26