Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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;
 }