diff --git a/foftickets.js b/foftickets.js index c226c12..837237a 100644 --- a/foftickets.js +++ b/foftickets.js @@ -64,6 +64,13 @@ const QRSalt ="!SaltyMagic5392370662"; // + Deactivate individual magic links (Admin) // + Get it working again online // Make all HTML look nice +// If you only have a magic link, supress "Change Password" +// Once a ticket is used, disallow transfer (oneticket) +// Once a ticket is used, disallow transfer (manytickets) +// Why does the live version redirect back to localhost? +// Make sure open camping tickets actually send email +// Don't hardcode MainURL and PORT +// Limit number of Open Camping tickets // Maybe: // Deactivate individual magic links (User) // Option to "Email me my QR Code" @@ -762,6 +769,7 @@ app.post('/buy',requireLogin,(req,res) => { + app.post('/charge', requireLogin, async (req, res) => { const payforwhat=req.body.payforwhat; if (!check_payforwhat(payforwhat,req)) return res.json({ error: 'Invalid PayForWhat' }); diff --git a/public/styles.css b/public/styles.css index c21cf32..d0168c0 100644 --- a/public/styles.css +++ b/public/styles.css @@ -35,30 +35,43 @@ cursor: pointer; } +h1 { + font-size: 1.2rem; +} body { display: grid; grid-template-columns: 240px auto; grid-template-rows: 40px auto; font-family: Arial, sans-serif; + } -.nav { - grid-column: 1; - grid-row: 1 / 3; - background-color: #FFC0C0; +.nav-header { + font-size: 1.5rem; + padding: 10px 15px; + grid-column: 1 / 3; + grid-row: 1; + background-color: #C0C0C0; +} + +.nav-items { + padding: 10px 15px; + grid-column: 1; + grid-row: 2 / 3; + background-color: #C0C0C0; } .message { - grid-column: 2; - grid-row: 1; - background-color: #C0FFC0; - align-content: center; - justify-items: center; + grid-column: 2; + grid-row: 1; + background-color: #C0C0C0; + align-content: center; + justify-items: center; } .content { grid-column: 2; grid-row: 2; - background-color: #C0C0FF; + background-color: #E0E0E0; } diff --git a/views/changepassword.ejs b/views/changepassword.ejs index 5c3cc11..15a24b9 100644 --- a/views/changepassword.ejs +++ b/views/changepassword.ejs @@ -7,7 +7,7 @@
<%- include('partials/nav') %>