IN THIS CHAPTER
Enabling user registration
Working with the user login function
Styling the display
Adding users to your Web site can be done by either the administrator or by the users themselves. In the default system, both methods are enabled. This means that visitors to the site can create their own accounts and thereafter become members of your Web site, with all the privileges assigned to the Authenticated user role. Administrators can also create users and indeed have much greater power to assign users to roles and to give users permissions to access contents and functionality.
In this chapter, I focus on how you can use the mechanisms that allow users to register and create their own accounts on your Web site. I also cover related functions like the Login block and the Request Password functionalities.
Drupal's default configuration allows visitors to a Web site to create their own accounts without intervention of the administrator. Obtaining a new user account is simple; a user simply clicks the Create new account link on the Login block, as shown in Figure 25.1, and then completes the form on the page that loads in the browser.
Figure 25-1. On the Login block, the links to both the Create new account and the Request Password functionalities are below the login form.
The page that loads in the ...