• Page:
  • 1

Registration approval email goes to all registered users and not admin

OFFLINE

Registration approval email goes to all registered users and not admin

4 years, 9 months ago
This is serious bug, we recently observed. IT is affecting only those installations in which user registration is allowed in uKnowva and also all 1.7 Joomla installations

The system sends out the email notification for approving a new registration to all email ids instead of just the admins .

The issue is with the registration model of com_users.

To resolve, Just open file: components/com_users/models/registration.php

Find the code
$query = 'SELECT name, email, sendEmail' .
	' FROM #__users' .
	' WHERE sendEmail=1';


Replace it by
$query = 'SELECT name, email, sendEmail' .
	' FROM #__users' .
	' WHERE sendEmail=1';
	AND id in (select user_id from #__user_usergroup_map where group_id in ('.implode(",",ConvHelper::getAllAdminGroups()).'))';



It has been rectified 2.4.2 onwards
The following user(s) said Thank You: Pooja Menon, Nikhil Chaughule, Aarti Navalu
  • Page:
  • 1

Upcoming Events

No events found.

Who's Online

5 users online