Framework solution
Following the principles discussed, the implementation of user management within the Aliro system is kept relatively simple. It goes beyond the barest minimum by including information that is helpful with issues like controlling malicious users, but we should recognize that far more information would be held in some systems.
The user database table
There is at least one identified user in our CMS, but we may have many, so the obvious thing to do is create a table in the general database to hold information about administrators, and any other registered users. The basic fields chosen for Aliro are as shown in the following screenshot:
A brief description of each field is as follows:
id: Is useful to have a simple and unique way to identify each user, so an integer ID is created for every new user. Details for how the ID is generated are explained later in the chapter.
name: May not always tell the truth, but it makes for a more user friendly system if the real name of...