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) => { 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.
<% } %>