dev and docker compose fixes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import bcrypt from 'bcrypt';
|
||||
|
||||
export async function createUser(username: string, password: string): Promise<void> {
|
||||
const sql = `INSERT INTO users (username, password, perms)
|
||||
VALUES ($username, $password, 0)`;
|
||||
|
||||
const hash = await bcrypt.hash(password, 12);
|
||||
}
|
||||
Reference in New Issue
Block a user