From 3374ea72ef47bfed0d23b26ae8478fede5496de4 Mon Sep 17 00:00:00 2001 From: King Omar Date: Fri, 10 Jul 2026 13:01:20 +1000 Subject: [PATCH] Make phone required on registration, fix deploy hook npx path Co-Authored-By: Claude Sonnet 4.6 --- src/index.js | 2 +- src/templates.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 653f616..03b8bdb 100644 --- a/src/index.js +++ b/src/index.js @@ -33,7 +33,7 @@ app.post('/register', async c => { const confirm = form.get('confirm_password') || ''; const vals = { full_name: fullName, email, phone }; - if (!fullName || !email || !password) return c.html(registerPage('All required fields must be filled in.', vals)); + if (!fullName || !email || !phone || !password) return c.html(registerPage('All required fields must be filled in, including phone number.', vals)); if (password.length < 8) return c.html(registerPage('Password must be at least 8 characters.', vals)); if (password !== confirm) return c.html(registerPage('Passwords do not match.', vals)); diff --git a/src/templates.js b/src/templates.js index 63c2d96..b48cc6e 100644 --- a/src/templates.js +++ b/src/templates.js @@ -568,8 +568,8 @@ function registerPage(error, values = {}) {
- - + +