From b9cbd22d8bcb97a4425c3b48762f2e80d6573cb8 Mon Sep 17 00:00:00 2001 From: Aidan Date: Tue, 17 Dec 2024 10:53:19 -0500 Subject: [PATCH 1/2] fix spelling issue --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index a95e6a1..bccccc3 100644 --- a/app.js +++ b/app.js @@ -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) => { From 5ebedadce019f7915c056b277cf3fb82379205ef Mon Sep 17 00:00:00 2001 From: Aidan Date: Tue, 17 Dec 2024 13:36:22 -0500 Subject: [PATCH 2/2] add messages for other statuses --- src/req-status.ejs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/req-status.ejs b/src/req-status.ejs index 727a1c6..359cec0 100644 --- a/src/req-status.ejs +++ b/src/req-status.ejs @@ -14,6 +14,15 @@

Your webmail can be accessed here.

<% } %> + <% if (request.status === 'Pending') { %> +

Your request is pending approval. This page will be updated when your request been approved or denied.

+ <% } %> + <% if (request.status === 'Denied') { %> +

Your request has been denied.

+

If you believe this is an error, please contact admin@p0ntus.com.

+

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.

+

You may resubmit another request if you feel you deserve an email, or have fixed issues with your application.

+ <% } %> <% } else { %>

No request found for the provided email.

<% } %>