User Management Overview

In this section, we create pages that are related with user management. In particular, we implement these required features: user login/logout, creating new user account and updating/deleting user accounts.

According to the requirements, we need to create the following pages. To better organize our code, these user-related pages will be created under a new directory protected/pages/users.

  • LoginUser displays a login form to login a user.
  • NewUser creates a new user account.
  • EditUser allows a registered user to update his profile.
  • AdminUser allows the administrator to manage the user accounts, including setting permission level and deleting a user account.

After finishing this section, we shall expect to see the following directories and files: