tags:

views:

40

answers:

1

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?

+1  A: 

In the action method that you want to access remove the attribute

[Authorize]

that is before it.

eKek0
You can also apply this to the Controller left rather than a single Action method.
David Liddle
* Controller declaration
David Liddle
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
Yes, of course.
eKek0