示例#1
0
 $model->role_id = ROLE_TENANT;
 // validate user input and redirect to the previous page if valid
 //if($model->validate() && $model->login())
 if ($model->validate()) {
     if (!empty($returnUrl)) {
         $this->redirect($returnUrl);
     }
     /* Change at yii 1.1.13: