mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
가상사이트에서 회원가입시 해당 사이트의 기본 회원으로 가입시킴
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6462 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a5c5b0f25
commit
e25f2ca119
1 changed files with 11 additions and 0 deletions
|
|
@ -540,9 +540,20 @@
|
|||
$output = $this->insertMember($args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 가상사이트일 경우 사이트 가입
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
if($site_module_info->site_srl > 0) {
|
||||
$default_group = $oMemberModel->getDefaultGroup($site_module_info->site_srl);
|
||||
if($default_group->group_srl) {
|
||||
$this->addMemberToGroup($args->member_srl, $default_group->group_srl, $site_module_info->site_srl);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 로그인 시킴
|
||||
if ($config->enable_confirm != 'Y') $this->doLogin($args->user_id);
|
||||
|
||||
// 결과 정리
|
||||
$this->add('member_srl', $args->member_srl);
|
||||
if($config->redirect_url) $this->add('redirect_url', $config->redirect_url);
|
||||
if ($config->enable_confirm == 'Y') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue