Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David 1 post 21 karma points
    Jun 07, 2012 @ 19:47
    David
    0

    AuthorizeAttribute is not redirecting to loginUrl

    Hi guys

    Why using the AuthorizeAttribute in a SurfaceController Action always redirect to "~/Account/Login" page ?

    I'm using a custom configuration in the web.config to my own login page but the result is the same.

    <authentication mode="Forms">
          <forms name=".ASPXAUTH" loginUrl="~/login"/>
    </authentication>

    Maybe I'm doing something wrong. I appreciate an answer for this.

    ;)

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies