git-svn-id: http://xe-core.googlecode.com/svn/trunk@1488 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-05-28 08:14:54 +00:00
parent 8342229c67
commit 5f91108021
3 changed files with 9 additions and 4 deletions

View file

@ -25,9 +25,8 @@
if($params && !is_array($params)) $params = array($params);
// user_id, password를 구해서 로그인 시도
$appkey = $params[0]->value->string->body;
$user_id = $params[1]->value->string->body;
$password = $params[2]->value->string->body;
$user_id = trim($params[1]->value->string->body);
$password = trim($params[2]->value->string->body);
// member controller을 이용해서 로그인 시도
$oMemberController = &getController('member');
@ -242,6 +241,11 @@
}
header("Content-Type: text/xml; charset=UTF-8");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
print $content;
exit();

View file

@ -869,7 +869,7 @@
$member_info = $oMemberModel->getMemberInfoByUserID($user_id);
// return 값이 없으면 존재하지 않는 사용자로 지정
if($member_info->user_id != $user_id) return new Object(-1, 'invalid_user_id');
if(!$user_id || $member_info->user_id != $user_id) return new Object(-1, 'invalid_user_id');
// 비밀번호 검사 : 우선 md5() hash값으로 비굥
if($password && $member_info->password != md5($password)) {

View file

@ -103,6 +103,7 @@
* @brief user_id에 해당하는 사용자 정보 return
**/
function getMemberInfoByUserID($user_id) {
if(!$user_id) return;
if(!$this->member_info[$user_id]) {
$args->user_id = $user_id;
$output = executeQuery('member.getMemberInfo', $args);