diff --git a/api/db.js b/api/db.js index d9b7d76..2753f30 100644 --- a/api/db.js +++ b/api/db.js @@ -484,7 +484,7 @@ export async function search(term, pagination) { export async function validate_account(username, password) { try { - const data = await pool.query('SELECT id, passhash FROM accounts WHERE username=$1', [username]); + const data = await pool.query('SELECT id, passhash FROM accounts WHERE username=$1 and gm=true', [username]); if (data.rows.length === 0) { return undefined; diff --git a/app/components/Nav.svelte b/app/components/Nav.svelte index 41d9630..721bdc5 100644 --- a/app/components/Nav.svelte +++ b/app/components/Nav.svelte @@ -36,9 +36,9 @@ -