c# - ASP.NET MVC 3 - Different Login Page for Authorize Attribute -


i have forms authentication wired mvc 3 application. when request comes in requires authentication, taken login controller have login.

however, want different view specific workflow because plan on utilizing white labeling clients. instead, want them go different endpoint in login controller display custom login view.

what options have make work?

can elaborate on mean white-label? content changed , depend on?

in web.config file for

<system.web>     <authentication mode="forms">         <forms loginurl="/login/index" />     </authentication> 

change loginurl attribute want be. then, on login action, select proper view return.

you'll need type of identifier distinguish clients (subdomain, cookie or something). use select proper view return.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -