Skip to content

Commit

Permalink
Changing comment line
Browse files Browse the repository at this point in the history
  • Loading branch information
carlitorweb committed Apr 30, 2018
1 parent 023c0a4 commit a515877
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions administrator/components/com_users/models/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ public function save($data)
$my = JFactory::getUser();
$iAmSuperAdmin = $my->authorise('core.admin');

// Check if the user mail domain or TLD is disallowed
$config = JComponentHelper::getParams('com_users');
$whiteListMailDomain = explode("\r\n", $config->get('whiteListMailDomain'));
$blackListMailDomain = explode("\r\n", $config->get('blackListMailDomain'));

$blackListMailDomain = explode("\r\n", $config->get('blackListMailDomain'));
$userMailDomain = explode('@', $data['email']);
$getTLD = explode('.', $userMailDomain[1]);
$userMailTLD = array_pop($getTLD);
Expand All @@ -227,7 +227,6 @@ public function save($data)
'userMailTLD' => $userMailTLD,
);

// Check if the user mail domain or TLD is disallowed
if ((!empty(array_filter($blackListMailDomain)) && !empty(array_intersect($needles, $blackListMailDomain)))
|| (!empty(array_filter($whiteListMailDomain)) && empty(array_intersect($needles, $whiteListMailDomain))))
{
Expand Down

0 comments on commit a515877

Please sign in to comment.