/** * @param string $email * @param string $password * @param int $partnerId * @return kuser */ public static function userLogin($puserId, $password, $partnerId) { $kuser = self::getKuserByPartnerAndUid($partnerId, $puserId); if (!$kuser) { throw new kUserException('', kUserException::USER_NOT_FOUND); } if (!$kuser->getLoginDataId()) { throw new kUserException('', kUserException::LOGIN_DATA_NOT_FOUND); } $kuser = UserLoginDataPeer::userLoginByDataId($kuser->getLoginDataId(), $password, $partnerId); return $kuser; }