Fix up inactivity warnings and include login link on inactivity email
This commit is contained in:
@@ -103,7 +103,7 @@ function deleteUser($iUserId)
|
|||||||
function warnUserDeleted($sEmail)
|
function warnUserDeleted($sEmail)
|
||||||
{
|
{
|
||||||
$sSubject = "Warning: account removed";
|
$sSubject = "Warning: account removed";
|
||||||
$sMsg = "You didn't log in in the past seven month to the AppDB.\r\n";
|
$sMsg = "You didn't log in in the past seven months to the AppDB.\r\n";
|
||||||
$sMsg .= "As you don't have any data associated to your account we have removed it.\r\n";
|
$sMsg .= "As you don't have any data associated to your account we have removed it.\r\n";
|
||||||
$sMsg .= "Please feel free to recreate an account anytime.\r\n";
|
$sMsg .= "Please feel free to recreate an account anytime.\r\n";
|
||||||
|
|
||||||
@@ -166,4 +166,4 @@ function orphanVersionCheck()
|
|||||||
$sEmail = get_notify_email_address_list(null, null); /* get list admins */
|
$sEmail = get_notify_email_address_list(null, null); /* get list admins */
|
||||||
if($sEmail)
|
if($sEmail)
|
||||||
mail_appdb($sEmail, $sSubject, $sMsg);
|
mail_appdb($sEmail, $sSubject, $sMsg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -656,15 +656,16 @@ class User {
|
|||||||
if($this->isMaintainer())
|
if($this->isMaintainer())
|
||||||
{
|
{
|
||||||
$sSubject = "Warning: inactivity detected";
|
$sSubject = "Warning: inactivity detected";
|
||||||
$sMsg = "You didn't log in in the past six month to the AppDB.\r\n";
|
$sMsg = "You didn't log in in the past six months to the AppDB.\r\n";
|
||||||
$sMsg .= "As a maintainer we would be pleased to see you once in a while.\r\n";
|
$sMsg .= "As a maintainer we would be pleased to see you once in a while.\r\n";
|
||||||
$sMsg .= "Please log in or you will lose your maintainer's abilities in one month.\r\n";
|
$sMsg .= "Please log in or you will lose your maintainer's abilities in one month.\r\n";
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
$sSubject = "Warning: inactivity detected";
|
$sSubject = "Warning: inactivity detected";
|
||||||
$sMsg = "You didn't log in in the past six month to the AppDB.\r\n";
|
$sMsg = "You didn't log in in the past six months to the AppDB.\r\n";
|
||||||
$sMsg .= "Please log in or your account will automatically be deleted in one month.\r\n";
|
$sMsg .= "Please log in or your account will automatically be deleted in one month.\r\n";
|
||||||
}
|
}
|
||||||
|
$sMsg .= APPDB_ROOT."account.php?cmd=login\r\n";
|
||||||
|
|
||||||
mail_appdb($this->sEmail, $sSubject, $sMsg);
|
mail_appdb($this->sEmail, $sSubject, $sMsg);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user