Welcome to the Cookbook

loading...

5.2.6.2 fields

Overrides the default username and password fields used for authentication.

<?php
    $this->Auth->fields = array('username' => 'email', 'password' => 'passwd');
?>
  1. <?php
  2. $this->Auth->fields = array('username' => 'email', 'password' => 'passwd');
  3. ?>