hnjm / user-access Goto Github PK
View Code? Open in Web Editor NEWThis project forked from cechov/user-access
This is an assignment from Norges Yrkesakademi. Create an MVC Web site with database connection and turn on the EF Code First Migrations. Create the following data in the Configuration Class Seed Method: 1) To roles: admin and user 2) A user who is assigned the Administrator role Make necessary changes to AccountController so newly registered users get assigned the role User. Then create an AdminController with an index view and link from the main page. The Index view in AdminController displays all users and their role. Click on username links to a page where you can change the user's role. Create the page to change the role of a user. Add the opportunity to login / register with Facebook. Check that it is possible to change the role of users created in this way The admin pages should only be available, and link in menu should only be displayed, for logged in users with the role Administrator.