mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@888 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cf8e6380e9
commit
ad5bfed398
6 changed files with 121 additions and 8 deletions
|
|
@ -337,9 +337,6 @@
|
|||
// 멤버 모델 객체 생성
|
||||
$oMemberModel = &getModel('member');
|
||||
|
||||
// 회원 정보 구하기
|
||||
$member_info = $oMemberModel->getMemberInfoByMemberSrl($args->member_srl);
|
||||
|
||||
// member_srl의 값에 따라 insert/update
|
||||
$output = $this->updateMember($args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -348,6 +345,26 @@
|
|||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 회원 비밀번호 수정
|
||||
**/
|
||||
function procMemberModifyPassword() {
|
||||
if(!Context::get('is_logged')) return $this->stop('msg_not_logged');
|
||||
|
||||
// 필수 정보들을 미리 추출
|
||||
$args->password = trim(Context::get('password'));
|
||||
|
||||
// 로그인 정보
|
||||
$logged_info = Context::get('logged_info');
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
|
||||
// member_srl의 값에 따라 insert/update
|
||||
$output = $this->updateMemberPassword($args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->add('member_srl', $args->member_srl);
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 이미지 이름을 추가
|
||||
|
|
@ -576,6 +593,14 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief member 비밀번호 수정
|
||||
**/
|
||||
function updateMemberPassword($args) {
|
||||
$args->password = md5($args->password);
|
||||
return executeQuery('member.updateMemberPassword', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 사용자 삭제
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue