$identity=new UserIdentity($model->userName,$model->password);
$identity->authenticate();
// set SESSION timeout to 20mins
Yii::app()->user->login($identity,60*20);
报错:
PHP notice
Undefined variable: identity