mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
issue 430 fixed required password field whene modify member info on admin menu
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9532 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2a504ff53d
commit
dc8e597174
2 changed files with 9 additions and 8 deletions
|
|
@ -248,7 +248,7 @@
|
|||
foreach($signupForm as $formInfo){
|
||||
if ($formInfo->required || $formInfo->mustRequired){
|
||||
if($formInfo->name == 'password')
|
||||
$fields[] = '<field name="password" length="3:20" ><if test="$act == \'procMemberInsert\'" attr="required" value="true" /></field>';
|
||||
$fields[] = '<field name="password"><if test="$act == \'procMemberInsert\'" attr="required" value="true" /><if test="$act == \'procMemberInsert\'" attr="length" value="3:20" /></field>';
|
||||
else if($formInfo->name == 'find_account_question'){
|
||||
$fields[] = '<field name="find_account_question" required="true" />';
|
||||
$fields[] = '<field name="find_account_answer" required="true" length=":250"/>';
|
||||
|
|
|
|||
|
|
@ -57,14 +57,15 @@
|
|||
$memberIdentifiers = array('user_id'=>'user_id', 'user_name'=>'user_name', 'nick_name'=>'nick_name');
|
||||
$usedIdentifiers = array();
|
||||
|
||||
foreach($config->signupForm as $signupItem){
|
||||
if (!count($memberIdentifiers)) break;
|
||||
if(in_array($signupItem->name, $memberIdentifiers) && ($signupItem->required || $signupItem->isUse)){
|
||||
unset($memberIdentifiers[$signupItem->name]);
|
||||
$usedIdentifiers[$signupItem->name] = $lang->{$signupItem->name};
|
||||
}
|
||||
if (is_array($config->signupForm)){
|
||||
foreach($config->signupForm as $signupItem){
|
||||
if (!count($memberIdentifiers)) break;
|
||||
if(in_array($signupItem->name, $memberIdentifiers) && ($signupItem->required || $signupItem->isUse)){
|
||||
unset($memberIdentifiers[$signupItem->name]);
|
||||
$usedIdentifiers[$signupItem->name] = $lang->{$signupItem->name};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue