LoginSignup
6
6

More than 5 years have passed since last update.

cakephpのauth

Last updated at Posted at 2013-01-07

備忘録としてメモ
IDとパスワード以外を、条件にセットしたい場合
beforefilterに
こんな感じで追加

//ログインの際の追加条件(仮登録状態のユーザにはログインさせない)
$this->Auth->authenticate = array(
AuthComponent::ALL => array(
'userModel' => 'User',
'scope' => array("User.reg_flag" => 1)
),
'Form');

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6