formData['id']) { $this->setError('Account Id name can not be found.'); return false; } return parent::isValid(); // TODO: Change the autogenerated stub } /** * @return bool|mixed */ public function process() { $model = new Account(); $model->setId($this->formData['id']); $model->setPassword($this->formData['password']); $result = $this->api->account->setPassword($model); if(!$result) { $this->setError($this->api->account->getError()); return false; } return true; } }