In my current website, I have three different areas on which I have applied the role based authentication which is working fine. Each area has it's own login page and whenever a public user click on the area, he/she is taken to the login page specified for that area and once the user has logged in successfully, the user is returned back to the area.
I want to remove the three areas from menu and provide just one common login. Once the user logs in, i want the website to identify the role of the user and redirect it to it's designated area.
Role based redirections
Hi,
In my current website, I have three different areas on which I have applied the role based authentication which is working fine. Each area has it's own login page and whenever a public user click on the area, he/she is taken to the login page specified for that area and once the user has logged in successfully, the user is returned back to the area.
I want to remove the three areas from menu and provide just one common login. Once the user logs in, i want the website to identify the role of the user and redirect it to it's designated area.
How can I do that?
Regards, Faraz
For role base authorization Use Roles class from System.web.security
on login method just check user's role by IsinRole method and based upon condition redirect to specific area.
When you say login method, do you mean actual backend code or the frontend razor code?
Please note that I am using membership module of umbraco and there was no backend coding involved in that role based authentication.
is working on a reply...