Temporarily disable registration/login for non gm

This commit is contained in:
Chord 2020-05-17 17:04:19 +02:00
parent 5e54cae329
commit 24e264d229
5 changed files with 7 additions and 5 deletions

View file

@ -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;