mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-07-12 06:55:07 +00:00
Temporarily disable registration/login for non gm
This commit is contained in:
parent
5e54cae329
commit
24e264d229
5 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue