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.
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 :)