ability to ban and unban users
This commit is contained in:
@@ -104,6 +104,7 @@ class TemplateManager {
|
||||
"forumCommentDeletionToAuthor.html",
|
||||
"paymentDeclinedToRenter.html",
|
||||
"paymentMethodUpdatedToOwner.html",
|
||||
"userBannedNotification.html",
|
||||
];
|
||||
|
||||
const failedTemplates = [];
|
||||
@@ -526,6 +527,21 @@ class TemplateManager {
|
||||
<p style="text-align: center;"><a href="{{approvalUrl}}" class="button">Review & Approve Rental</a></p>
|
||||
`
|
||||
),
|
||||
|
||||
userBannedNotification: baseTemplate.replace(
|
||||
"{{content}}",
|
||||
`
|
||||
<p>Hi {{userName}},</p>
|
||||
<h2>Your Account Has Been Suspended</h2>
|
||||
<p>Your Village Share account has been suspended by our moderation team.</p>
|
||||
<div style="background-color: #f8d7da; border-left: 4px solid #dc3545; padding: 20px; margin: 20px 0;">
|
||||
<p><strong>Reason for Suspension:</strong></p>
|
||||
<p>{{banReason}}</p>
|
||||
</div>
|
||||
<p>You have been logged out of all devices and cannot log in to your account.</p>
|
||||
<p>If you believe this suspension was made in error, please contact <a href="mailto:{{supportEmail}}">{{supportEmail}}</a>.</p>
|
||||
`
|
||||
),
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user