added and fix some of things

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-03 12:03:02 +08:00
parent 6765c1faba
commit d246c09cdd
31 changed files with 724 additions and 510 deletions
+29
View File
@@ -118,6 +118,35 @@ const emailTemplates = {
`),
}),
MADE_ADMIN: ({ name, email }) => ({
subject: "You've Been Granted Administrator Access - STARR System",
html: wrap(`
<p>Dear ${name},</p>
<p><strong>Congratulations!</strong></p>
<p>We're pleased to inform you that your account has been granted Administrator access to the platform.</p>
<p>As an Administrator, you now have access to management features that allow you to oversee users, courses, content, and other administrative functions.</p>
<table style="${FONT}">
<tr><td><strong>Email</strong></td><td>${email}</td></tr>
<tr><td><strong>Role</strong></td><td>Administrator</td></tr>
</table>
<p>Please sign in using your existing credentials. If you have any questions or require assistance, don't hesitate to contact our support team.</p>
`),
}),
DEMOTED_ADMIN: ({ name, email }) => ({
subject: "Your Account Role Has Been Updated - STARR System",
html: wrap(`
<p>Dear ${name},</p>
<p>This email is to inform you that your account has been updated.</p>
<p>Your Administrator privileges have been removed, and your account has been returned to a User role.</p>
<table style="${FONT}">
<tr><td><strong>Email</strong></td><td>${email}</td></tr>
<tr><td><strong>Current Role</strong></td><td>User</td></tr>
</table>
<p>You can continue using the platform with the permissions available to standard users. If you believe this change was made in error or have any questions, please contact your system administrator.</p>
`),
}),
ADD_STAFF: ({ name, email, password, expiryHours = 24 }) => ({
subject: "Your Staff Account Has Been Created - STARR System",
html: wrap(`