asp.net login control with role redirection

Posted by Eatdoku on Stack Overflow See other posts from Stack Overflow or by Eatdoku
Published on 2010-04-07T23:48:03Z Indexed on 2010/04/07 23:53 UTC
Read the original article Hit count: 250

Filed under:

Hi,

I am using a asp.net login control with one of my asp.net application to authenticate users. I also have roles defined as well.

Some of the directories are setup so only users with ROLE "MANAGER" are able to access pages under those directories. If the user does not have "MANAGER" role, he will simply be redirect back to the login page.

so my question is that for the out of box login control, is there a way to show the proper login fail error message? for user trying to login but does not have a proper ROLE assigned to them, instead of a generic error message saying "login failed"

thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET