For this assignment, you will be working with users and roles. Allow users to register themselves to the system as either a locally-verified user or an externally-verified user (via Google, Yahoo, etc.). Since we can’t lock out new members until approved by an administrator (we’d need to generate & modify the AccountController Razor Page), we’ll treat everyone in the members role as approved users and everyone else as strangers. You will do role-management in this assignment: create/delete roles, and add/remove users in roles. The lecture exercise will take you through user management: enable users, delete strangers, and reset passwords. Normally, these tasks would be performed by site administrators.
1. Take your current XXPatients project or start with A1Patients from eConestoga.ca:
a. Put your name & section in the _layout footer
b. Ensure the variable message from TempData displays, bold & red, on _layout before the View’s page
c. Enable Session variables in startup.cs
2. Create a drop-down menu item labelled Security, with sub-menu items User Maintenance and Role Maintenance.
3. Register local users named [email protected], [email protected], [email protected] and [email protected], all with the password Fred@fred1.