public function init()
 {
     parent::init();
     $model = $this->getModel();
     if (empty($model->password)) {
         $this->exclude[] = 'password_current';
     }
 }
示例#2
0
 public function isValid()
 {
     parent::isValid();
     $this->authenticate();
     return $this->hasErrors() === false;
 }