Who can do what?
Nelisa only wants some users to be able to add data.
Add support for:
- User logins, only logged in users should be able to use the application;
- user roles:
- a read-only role - that can only see data;
- an admin role - that can see and add data.
- a user management page where admin users can create users and manage user roles;
- encrypted user passwords.
Learning areas
- How to use http-session for storing logged in username and role;
- using middleware to check :
- if a user is logged in;
- a user’s roles;
- how to use bcrypt to encrypt passwords.