diff --git a/app/auth/setup.js b/app/auth/setup.js index 5cd244e..196fcbd 100644 --- a/app/auth/setup.js +++ b/app/auth/setup.js @@ -34,7 +34,6 @@ export function authSetup(app) { app.post('/auth/signup', async(req, res, next) => { try { - debugger const { username, email, password } = req.body; const userExists = db.find('username', username); diff --git a/routes/_private.html b/routes/_private.html index b450154..0aded63 100644 --- a/routes/_private.html +++ b/routes/_private.html @@ -1,18 +1,20 @@

You are now logged in!

-
- {#if $user.username === 'general-zod'} +{#if $user.username === 'general-zod'} +
Zod
Kneel before Zod!
- {:else} +
+{:else} +
Super
Up, up, and away!
- {/if} -
+
+{/if} \ No newline at end of file + diff --git a/routes/auth/validate.json.js b/routes/auth/validate.json.js index aa829cc..95c0d02 100644 --- a/routes/auth/validate.json.js +++ b/routes/auth/validate.json.js @@ -7,7 +7,6 @@ export async function post(req, res) { res.writeHead(200, { 'Content-Type': 'application/json' }); try { if (req.body.key === 'username') { - debugger const found = db.find(req.body.key, req.body.value); if (found) { message = 'That username is already in use.'; @@ -18,7 +17,6 @@ export async function post(req, res) { if (!valid) { message = 'Email is invalid.'; } else { - debugger const found = db.find(req.body.key, req.body.value); if (found) { message = 'Email is already taken.';