mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #1095 denied email hosts not applied in procMemberResetAuthMail
This commit is contained in:
parent
c49ce899ce
commit
4c5d5650a6
1 changed files with 16 additions and 0 deletions
|
|
@ -1733,6 +1733,22 @@ class memberController extends member
|
|||
throw new Rhymix\Framework\Exception('msg_exists_email_address');
|
||||
}
|
||||
|
||||
// Check managed Email Host
|
||||
if($oMemberModel->isDeniedEmailHost($newEmail))
|
||||
{
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
$emailhost_check = $config->emailhost_check;
|
||||
|
||||
$managed_email_host = lang('managed_email_host');
|
||||
$email_hosts = $oMemberModel->getManagedEmailHosts();
|
||||
foreach ($email_hosts as $host)
|
||||
{
|
||||
$hosts[] = $host->email_host;
|
||||
}
|
||||
$message = sprintf($managed_email_host[$emailhost_check], implode(', ',$hosts), 'id@' . implode(', id@', $hosts));
|
||||
throw new Rhymix\Framework\Exception($message);
|
||||
}
|
||||
|
||||
// remove all key by member_srl
|
||||
$args = new stdClass;
|
||||
$args->member_srl = $memberInfo->member_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue