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@1568 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
62900a4ba3
commit
3c34981ed1
8 changed files with 48 additions and 3 deletions
|
|
@ -52,7 +52,6 @@
|
|||
|
||||
$openid->SetRequiredFields(array('email','fullname'));
|
||||
$openid->SetOptionalFields(array('dob'));
|
||||
ob_clean();
|
||||
|
||||
if (!$openid->GetOpenIDServer()) {
|
||||
$error = $openid->GetError();
|
||||
|
|
@ -63,6 +62,7 @@
|
|||
$url = $openid->GetRedirectURL();
|
||||
$this->add('redirect_url', $url);
|
||||
}
|
||||
ob_clean();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
@charset "utf-8";
|
||||
|
||||
/* pathNavigation */
|
||||
.openid_user_id {
|
||||
background: url(../images/login-bg.gif) left no-repeat;
|
||||
background-color: #ffffff;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,11 @@
|
|||
if(Context::get('is_logged')) $tpl_file = 'login_info';
|
||||
else $tpl_file = 'login_form';
|
||||
|
||||
// 회원 관리 정보를 받음
|
||||
$oModuleModel = &getModel('module');
|
||||
$this->member_config = $oModuleModel->getModuleConfig('member');
|
||||
Context::set('member_config', $this->member_config);
|
||||
|
||||
// 템플릿 컴파일
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
|
|
|
|||
10
plugins/login_info/skins/default/filter/openid_login.xml
Normal file
10
plugins/login_info/skins/default/filter/openid_login.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<filter name="openid_login" module="member" act="procMemberOpenIDLogin">
|
||||
<form>
|
||||
<node target="user_id" required="true" />
|
||||
</form>
|
||||
<parameter />
|
||||
<response callback_func="completeOpenIDLogin">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
BIN
plugins/login_info/skins/default/images/login-bg.gif
Normal file
BIN
plugins/login_info/skins/default/images/login-bg.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 237 B |
|
|
@ -26,6 +26,11 @@ function completeLogin(ret_obj, response_tags, params, fo_obj) {
|
|||
location.href = url;
|
||||
}
|
||||
|
||||
/* 오픈아이디 로그인 후 */
|
||||
function completeOpenIDLogin(ret_obj, response_tags) {
|
||||
var redirect_url = ret_obj['redirect_url'];
|
||||
location.href = redirect_url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
<!--@end-->
|
||||
|
||||
<!--%import("./filter/login.xml")-->
|
||||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./js/login.js")-->
|
||||
|
||||
<div class="login_plugin">
|
||||
|
|
@ -32,4 +33,22 @@
|
|||
<script type="text/javascript">
|
||||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_plugin"); });
|
||||
</script>
|
||||
|
||||
<!-- OpenID -->
|
||||
<!--@if($member_config->enable_openid=='Y')-->
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, openid_login)">
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>{$lang->openid}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" name="user_id" tabindex="1" class="openid_user_id" />
|
||||
<input type="submit" value="{$lang->cmd_login}" tabindex="2" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!--@end-->
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
.login_plugin {
|
||||
border:3px solid #DDDDDD;
|
||||
padding:6px;
|
||||
height:80px;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
|
||||
|
|
@ -149,3 +148,11 @@
|
|||
color:#000000;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.openid_user_id {
|
||||
background: url(../images/login-bg.gif) left no-repeat;
|
||||
background-color: #ffffff;
|
||||
background-position: 0 50%;
|
||||
color: #000;
|
||||
padding-left: 18px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue