mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
openid 로그인시 return url 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4669 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d108208cea
commit
2e54a9f711
1 changed files with 10 additions and 2 deletions
|
|
@ -66,7 +66,9 @@
|
|||
$this->setError(-1);
|
||||
$this->setMessage($error['description']);
|
||||
} else {
|
||||
$openid->SetApprovedURL( sprintf('%s?module=member&act=procMemberOpenIDValidate', Context::getRequestUri(RELEASE_SSL)) );
|
||||
$goto = urlencode(substr($_SERVER['HTTP_REFERER'],strlen(Context::getRequestUri(RELEASE_SSL))));
|
||||
$ApprovedURL = Context::getRequestUri(RELEASE_SSL) . "?module=member&act=procMemberOpenIDValidate&goto=" . $goto;
|
||||
$openid->SetApprovedURL($ApprovedURL);
|
||||
$url = $openid->GetRedirectURL();
|
||||
$this->add('redirect_url', $url);
|
||||
}
|
||||
|
|
@ -114,7 +116,13 @@
|
|||
Context::close();
|
||||
|
||||
// 페이지 이동
|
||||
header("location:./");
|
||||
if(Context::get('goto')){
|
||||
$goto = Context::get('goto');
|
||||
header("location:./" . $goto);
|
||||
}else{
|
||||
header("location:./");
|
||||
}
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue