If you want to change default auth fields, add the below code in your app controller
public $components = array('Session',
'Auth' => array(
'authenticate' => array(
'Form' => array(
'userModel' => 'User',
'fields' => array(
'username' => 'email',
'password' => 'password'
),
'scope' => array('is_active' => '1')
)),),
)
0 Comment(s)