mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Fix unmodifiable fields being exposed in member info modification form
This commit is contained in:
parent
62dfb38308
commit
089f375743
2 changed files with 6 additions and 4 deletions
|
|
@ -497,13 +497,15 @@ class MemberAdminView extends Member
|
|||
{
|
||||
$member_config = $this->memberConfig = $oMemberModel->getMemberConfig();
|
||||
}
|
||||
$identifiers = $member_config->identifiers ?? [$member_config->identifier];
|
||||
$identifiers = array_intersect($identifiers, ['user_id', 'email_address']);
|
||||
|
||||
global $lang;
|
||||
$formTags = array();
|
||||
|
||||
foreach($member_config->signupForm as $no=>$formInfo)
|
||||
{
|
||||
if(!$formInfo->isUse || $formInfo->name == $member_config->identifier || $formInfo->name == 'password')
|
||||
if(!$formInfo->isUse || in_array($formInfo->name, $identifiers) || $formInfo->name == 'password')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue