Welcome to the Cookbook

loading...

5.2.6.4 loginAction

You can change the default login from /users/login to be any action of your choice.

<?php
    $this->Auth->loginAction = array('admin' => false, 'controller' => 'members', 'action' => 'login');
?>
  1. <?php
  2. $this->Auth->loginAction = array('admin' => false, 'controller' => 'members', 'action' => 'login');
  3. ?>