Try our conversational search powered by Generative AI!

MVC Login Page

Vote:
 

Hi does anyone know the best way in which to build a MVC login page? Ideally the functionality should allow administrators into a an admin section and the standard user gets to view restricted content. Any examples would be really good.


Thanks in advance.

#119216
Mar 24, 2015 15:06
Vote:
 

edit:

Authorization (who sees what) is handled by EPiServer. You can set the access rights for every page.

If you want to hide certain parts of the view, you can check user roles in controller actions / view, and show / hide things using IF statements.

For login, you can check this article: http://dcaric.com/blog/episerver-login-functionality-using-web-api-2

Hope this helps :)

#119217
Edited, Mar 24, 2015 15:34
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.