3.x Book · 2.x Book · 1.3 Book · 1.2 Book · 1.1 Book Adding Login; Adding Logout; Enabling Registrations; Restricting Article Access public function initialize() { // Existing code $this->loadComponent('Auth', So let's create the login action: The above tells AuthComponent that the add() action of the UsersController .