before approaching the construction of the login page, you must have an appropriate user data template and some user data record to which the system can compare them during the identification process.
0.0.- from the GenBnet contents management site access the section "managing authentication templates" (manage templates/types of authentication records). 1.0.- insert a data template to handle the user information in the restricted area (for further details see definition of data templates).
NOTE: in the definition of authentication data templates it is unnecessary to fill in the url_list or url_det fields. No detail view or list of user records handled is used.
1.1.- incorporate two short text type (advisable) fields in the data template for the user name and password. (you can use whatever field name you want).
NOTE: when the Login form is created, labels (name) for these fields are used to designate user name and password input fields.
1.2.- if you want to use different levels of access or privileges, incorporate a closed-list field in the data template (advisable), filling in all the levels of access that the restricted area will control.
Some examples of access levels: -. "registered_user"; "customer"; "supplier". -. "student"; "professor". -. "no fee"; " payment A"; " payment B". -. "reader"; "editor"; "supervisor"
NOTE: the access levels can be "atomic" (a "supervisor" needs not be the "editor") or "inclusive" (a user with "payment A" access may have "no fee" user privileges) using in each case closed lists of the "checkbox" or "radio-button" type respectively.
the access level can be used to impose a minimum restriction on the page (e.g., restrict the page to registered users") and to show or hide information once access has been granted to the restricted page (e.g., on the page restricted to "registered" users, show more information on fees if the user, in addition to being "registered" is also a "supplier").
1.3.- incorporate as many additional data fields in the data template as information associated with the user is to be managed.
NOTE: the authentication module enables the user in session to be shown the values of all the template fields used for, except username and password, on every page that uses authentication.
NOTE: the authentication data template could contain any kind of field, even document or picture fields.
example of a data template: 1.4.- go to the data management site "Managing authentication registries" and incorporate as many data records as users authorized to access the restricted area. |