auth additions and website layout
This commit is contained in:
@@ -6,9 +6,8 @@ export async function createUser(username: string, password: string): Promise<vo
|
||||
|
||||
const response = await sql`
|
||||
INSERT INTO users (username, password_hash, perms)
|
||||
VALUES (${username}, ${password_hash}, 2);
|
||||
VALUES (${username}, ${password_hash}, 3);
|
||||
`;
|
||||
console.log(response);
|
||||
}
|
||||
|
||||
export async function checkUserCreds(username: string, password: string): Promise<number> {
|
||||
|
||||
Reference in New Issue
Block a user