Merge remote-tracking branch 'origin/main'

This commit is contained in:
Aidan 2024-12-20 00:30:02 -05:00
commit b1ac0e5c09
No known key found for this signature in database
GPG Key ID: 1773A01F0EFE4FC1
2 changed files with 10 additions and 1 deletions

2
app.js
View File

@ -155,7 +155,7 @@ app.get('/admin/dashboard', checkAdminAuth, async (req, res) => {
app.post('/admin/update-status', checkAdminAuth, async (req, res) => {
const { id, status } = req.body;
await Request.update({ status }, { where: { id } });
res.redireHot('/admin/dashboard');
res.redirect('/admin/dashboard');
});
app.post('/admin/delete-request', checkAdminAuth, async (req, res) => {

View File

@ -14,6 +14,15 @@
<p>Your webmail can be accessed <a href="https://mail.p0ntus.com/SOGo">here</a>.</p>
</div>
<% } %>
<% if (request.status === 'Pending') { %>
<p>Your request is pending approval. This page will be updated when your request been approved or denied.</p>
<% } %>
<% if (request.status === 'Denied') { %>
<p>Your request has been denied.</p>
<p>If you believe this is an error, please contact <a href="mailto:admin@p0ntus.com">admin@p0ntus.com</a>.</p>
<p>Please ensure the username you selected only includes letters, numbers, and periods/dashes. Your request may also be declined if you do not provide a valid reason or response in your application.</p>
<p>You may resubmit another request if you feel you deserve an email, or have fixed issues with your application.</p>
<% } %>
<% } else { %>
<p>No request found for the provided email.</p>
<% } %>