ASP.NET MVC 5 (Visual Studio 2013 Preview) Change Login Url for [Authorize] -


hey guys started playing around asp.net mvc 5 preview , has been going fine far (i can recommend it).

however, wonder can set login-url built-in [authorize]-attribute. i've moved accountcontroller area, path login action no longer /account/login myarea/account/login, ignored [authorize]-attribute, in turn means, whenever 1 navigates controller or action attribute set, 1 redirected wrong path /account/login.

look in web.config section this:

<authentication mode="forms">   <forms loginurl="~/account/logon" timeout="2880" /> </authentication> 

change loginurl value point updated login page.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -