kristofferahl / FluentSecurity

Fluent Security configuration for ASP.NET MVC
MIT License
163 stars 47 forks source link

Return View or Action ... #49

Closed mdmoura closed 11 years ago

mdmoura commented 11 years ago

Hello,

I have the following on my configuration:

configuration.For<UserController>(y => y.SignUp()).DenyAuthenticatedAccess();

I want to avoid authenticated to SignUp. But I don't want to redirect to SignIn as usual.

I would like to redirect them to Home/Index or return a view with a custom message.

What would be the best way to do this?

Thank You, Miguel