public function setAccountInfo($aParam) { $user = cc_get_instance('MemberLibClass'); $aParam['pwd'] = MemberLibClass::getMKPwd($aParam['pwd']); if ($this->user_dao->setAccount($aParam)) { return true; } else { return false; } }
private function _chkPWD($accountID, $passwd) { if (!$accountID || !$passwd) { return false; } if (!($oAccountInfo = $this->_getPwdDB($accountID))) { return false; } $user = cc_get_instance('MemberLibClass'); $sMkPWD = MemberLibClass::getMKPwd($passwd); if ($oAccountInfo->pwd == $sMkPWD) { return $oAccountInfo->usn; } else { return false; } return false; }