mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove unnecessary information from password reset email #2594
This commit is contained in:
parent
6d95dd9fc8
commit
0d03d2a3dd
1 changed files with 4 additions and 14 deletions
|
|
@ -1824,23 +1824,13 @@ class MemberController extends Member
|
|||
Context::set('auth_args', $args);
|
||||
|
||||
$memberInfo = array();
|
||||
if(is_array($member_config->signupForm))
|
||||
if (in_array('user_id', $member_config->identifiers))
|
||||
{
|
||||
$exceptForm=array('password', 'find_account_question');
|
||||
foreach($member_config->signupForm as $form)
|
||||
{
|
||||
if(!in_array($form->name, $exceptForm) && $form->isDefaultForm && ($form->required || $form->mustRequired))
|
||||
{
|
||||
$memberInfo[$lang->{$form->name}] = $member_info->{$form->name};
|
||||
}
|
||||
}
|
||||
$memberInfo[$lang->user_id] = $member_info->user_id;
|
||||
}
|
||||
else
|
||||
if (in_array('email_address', $member_config->identifiers))
|
||||
{
|
||||
$memberInfo[$lang->user_id] = $args->user_id;
|
||||
$memberInfo[$lang->user_name] = $args->user_name;
|
||||
$memberInfo[$lang->nick_name] = $args->nick_name;
|
||||
$memberInfo[$lang->email_address] = $args->email_address;
|
||||
$memberInfo[$lang->email_address] = $member_info->email_address;
|
||||
}
|
||||
Context::set('memberInfo', $memberInfo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue