aInputs['relocate']['value'] = $sRelocate && 0 == strncmp(BX_DOL_URL_ROOT, $sRelocate, strlen(BX_DOL_URL_ROOT)) ? $sRelocate : BX_DOL_URL_ROOT . 'member.php'; } function isValid () { if (!parent::isValid ()) { $this->_setLoginError (_t('_sys_txt_login_error')); return false; } $sErrorString = bx_check_password($this->getCleanValue('ID'), $this->getCleanValue('Password'), $this->getRole()); $this->_setLoginError ($sErrorString); return $sErrorString ? false : true; } function isSubmittedAndValid () { $bRet = parent::isSubmittedAndValid (); if (!$bRet && !$this->getLoginError()) $this->_setLoginError (_t('_sys_txt_login_error')); return $bRet; } protected function genCustomInputSubmitText ($aInput) { bx_import('BxDolPermalinks'); return '
' . _t("_sys_txt_forgot_pasword") . '
'; } public function getRole() { return $this->_iRole; } public function setRole ($iRole) { $this->_iRole = $iRole == BX_DOL_ROLE_ADMIN ? BX_DOL_ROLE_ADMIN : BX_DOL_ROLE_MEMBER; } public function getLoginError() { return $this->_sLoginError; } protected function _setLoginError ($s) { $this->_sLoginError = $s; } } /** @} */