mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
fixed install login error
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9120 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a24f3d90f7
commit
e86a4e2ed2
4 changed files with 8 additions and 7 deletions
|
|
@ -136,7 +136,7 @@
|
|||
// Insert admin information
|
||||
$oMemberAdminController->insertAdmin($admin_info);
|
||||
// Log-in Processing
|
||||
$output = $oMemberController->doLogin($admin_info->user_id);
|
||||
$output = $oMemberController->doLogin($admin_info->email_address);
|
||||
}
|
||||
}
|
||||
// Register denied ID(default + module name)
|
||||
|
|
|
|||
|
|
@ -48,10 +48,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
$redirect_url = Context::get('redirect_url');
|
||||
if ($output->toBool () && Context::getRequestMethod () == "POST" && $redirect_url) {
|
||||
header ("location:" . $redirect_url);
|
||||
}
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '');
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
return;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
<form ruleset="@login" action="./" method="post" id="fo_member_login">
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<fieldset class="login">
|
||||
<dl>
|
||||
<dt><label for="uid">{$lang->user_id}</label></dt>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue