MVC Login Page


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.

Mar 24, 2015 15:06


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:

Hope this helps :)

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.