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> {
|
||||
|
||||
@@ -1 +1 @@
|
||||
export let userState = $state({ permissions: 0b00000001 });
|
||||
export let userState = $state({ perms: 0b00000001 });
|
||||
|
||||
Reference in New Issue
Block a user