Commit 630e3d3b authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] Adds username to expiring key mailing

Change-Id: I6554a4a2580cc17e21bb2cf08f39ba9c03b18b98
Reviewed-on: https://review.typo3.org/49484


Tested-by: Thomas Löffler's avatarThomas Löffler <loeffler@spooner-web.de>
Reviewed-by: Thomas Löffler's avatarThomas Löffler <loeffler@spooner-web.de>
Reviewed-by: Kay Strobach's avatarKay Strobach <typo3@kay-strobach.de>
Tested-by: Kay Strobach's avatarKay Strobach <typo3@kay-strobach.de>
parent 36724ba1
......@@ -54,7 +54,7 @@ class Tx_TerFe2_Task_CheckForExpiredExtensions extends tx_scheduler_Task {
continue;
}
$frontendUser = $this->getDatabaseConnection()->exec_SELECTgetSingleRow(
'uid, email',
'uid, username, email',
'fe_users',
'username = ' . $this->getDatabaseConnection()->fullQuoteStr($username, 'fe_users')
. t3lib_BEfunc::BEenableFields('fe_users') . t3lib_BEfunc::deleteClause('fe_users')
......@@ -66,6 +66,7 @@ class Tx_TerFe2_Task_CheckForExpiredExtensions extends tx_scheduler_Task {
$body = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
$body->setTemplatePathAndFilename(t3lib_div::getFileAbsFileName('EXT:ter_fe2/Resources/Private/Templates/Mail/ExpiredExtensions.html'));
$body->assign('extensions', $extensions);
$body->assign('user', $frontendUser);
/** @var t3lib_mail_Message $mail */
$mail = t3lib_div::makeInstance('t3lib_mail_Message');
$mail->addFrom('maintenance@typo3.org');
......
Dear extension owner,
You have {extensions -> f:count()} extension key[s] in your repository which have never had an upload or weren't touched for one year.
You have {extensions -> f:count()} extension key[s] in your repository (username: "{user.username}") which have never had an upload or weren't touched for one year.
Due to cleanup process we want to inform you that these extension keys will expire in 30 days unless you take action (see below):
<f:for each="{extensions}" as="extension">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment