備忘録としてメモ
IDとパスワード以外を、条件にセットしたい場合
beforefilterに
こんな感じで追加
//ログインの際の追加条件(仮登録状態のユーザにはログインさせない)
$this->Auth->authenticate = array(
AuthComponent::ALL => array(
'userModel' => 'User',
'scope' => array("User.reg_flag" => 1)
),
'Form');