Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions components/com_users/models/reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,32 +429,6 @@ public function processResetRequest($data)
{
$this->setError(JText::_('COM_USERS_REMIND_SUPERADMIN_ERROR'));

// Put together the email template data.
$data = $user->getProperties();
$data['fromname'] = $config->get('fromname');
$data['mailfrom'] = $config->get('mailfrom');
$data['sitename'] = $config->get('sitename');

$subject = JText::sprintf(
'COM_USERS_EMAIL_PASSWORD_RESET_SUBJECT',
$data['sitename']
);

$body = JText::sprintf(
'COM_USERS_REMIND_SUPERADMIN_BODY',
$data['sitename'],
'https://docs.joomla.org/Special:MyLanguage/How_do_you_recover_or_reset_your_admin_password%3F'
);

// Send the password reset request email.
$return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $user->email, $subject, $body);

// Check for an error.
if ($return !== true)
{
$this->setError(JText::_('COM_USERS_MAIL_FAILED'));
}

return false;
}

Expand Down
1 change: 0 additions & 1 deletion language/en-GB/en-GB.com_users.ini
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ COM_USERS_REMIND_REQUEST="If the email address you entered is registered on this
COM_USERS_REMIND_REQUEST_ERROR="Error requesting password reminder."
COM_USERS_REMIND_REQUEST_FAILED="Reminder failed: %s"
COM_USERS_REMIND_REQUEST_SUCCESS="Reminder sent. Please check your mail."
COM_USERS_REMIND_SUPERADMIN_BODY="Hello,\n\nA request has been made to reset your %s account password. But, for security reasons, a Super User can't request a password reminder. Please contact another Super User or use an alternative method as described in the documentation: %s"
COM_USERS_REMIND_SUPERADMIN_ERROR="A Super User can't request a password reminder. Please contact another Super User or use an <a href='https://docs.joomla.org/Special:MyLanguage/How_do_you_recover_or_reset_your_admin_password%3F' target='_blank' rel='noopener noreferrer'>alternative method</a> as described in the documentation."
COM_USERS_RESET="Password Reset"
COM_USERS_RESET_COMPLETE_ERROR="Error completing password reset."
Expand Down