mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 2050 deletes user_id, user_name in the admin info.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11781 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
78de603b6e
commit
4cf9504350
2 changed files with 5 additions and 3 deletions
|
|
@ -6,7 +6,6 @@
|
|||
<field name="email_address" required="true" length="1:200" rule="email" />
|
||||
<field name="password" required="true" length="1:20" />
|
||||
<field name="password2" required="true" length="1:20" equalto="password" />
|
||||
<field name="user_id" required="true" length="2:20" rule="userid" />
|
||||
<field name="nick_name" required="true" length="2:20" />
|
||||
</fields>
|
||||
</ruleset>
|
||||
|
|
|
|||
|
|
@ -121,12 +121,15 @@
|
|||
$group_args->is_admin = 'N';
|
||||
$oMemberAdminController->insertGroup($group_args);
|
||||
}
|
||||
|
||||
// Configure administrator information
|
||||
$admin_args->is_admin = 'Y';
|
||||
$output = executeQuery('member.getMemberList', $admin_args);
|
||||
if(!$output->data) {
|
||||
$admin_info = Context::gets('user_id','password','nick_name','user_name', 'email_address');
|
||||
if($admin_info->user_id) {
|
||||
$admin_info = Context::gets('password','nick_name','email_address');
|
||||
if($admin_info->email_address) {
|
||||
$admin_info->user_id = 'admin';
|
||||
$admin_info->user_name = 'admin';
|
||||
// Insert admin information
|
||||
$oMemberAdminController->insertAdmin($admin_info);
|
||||
// Log-in Processing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue