/** * Validate form user inputs * * @return boolean */ public function validateForm() { // disable password validation if they are empty $password = BizSystem::ClientProxy()->GetFormInputs("fld_password"); $password_repeat = BizSystem::ClientProxy()->GetFormInputs("fld_password_repeat"); if (!$password_repeat) { $this->getElement("fld_password")->m_Validator = null; } if (!$password) { $this->getElement("fld_password_repeat")->m_Validator = null; } parent::ValidateForm(); if ($password != "" && $password != $password_repeat) { $passRepeatElem = $this->getElement("fld_password_repeat"); $errorMessage = $this->GetMessage("PASSOWRD_REPEAT_NOTSAME", array($passRepeatElem->m_Label)); $this->m_ValidateErrors['fld_password_repeat'] = $errorMessage; throw new ValidationException($this->m_ValidateErrors); return false; } return true; }