mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
#18298088 * 회원가입 관련 트리거 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6783 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4fe7c394d5
commit
c4352f4ec2
2 changed files with 8 additions and 0 deletions
|
|
@ -508,6 +508,10 @@
|
|||
$oMemberModel = &getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
|
||||
// before 트리거 호출
|
||||
$trigger_output = ModuleHandler::triggerCall('member.procMemberInsert', 'before', $config);
|
||||
if(!$trigger_output->toBool()) return $trigger_output;
|
||||
|
||||
// 관리자가 회원가입을 허락하였는지 검사
|
||||
if($config->enable_join != 'Y') return $this->stop('msg_signup_disabled');
|
||||
|
||||
|
|
|
|||
|
|
@ -73,6 +73,10 @@
|
|||
// 로그인한 회원일 경우 해당 회원의 정보를 받음
|
||||
if($oMemberModel->isLogged()) return $this->stop('msg_already_logged');
|
||||
|
||||
// before 트리거 호출
|
||||
$trigger_output = ModuleHandler::triggerCall('member.dispMemberSignUpForm', 'before', $this->member_config);
|
||||
if(!$trigger_output->toBool()) return $trigger_output;
|
||||
|
||||
// 회원가입을 중지시켰을 때는 에러 표시
|
||||
if($this->member_config->enable_join != 'Y') return $this->stop('msg_signup_disabled');
|
||||
Context::set('extend_form_list', $oMemberModel->getCombineJoinForm($member_info));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue