fixed login and logout and started on player screen

This commit is contained in:
2026-06-30 17:11:37 +01:00
parent 201821d53c
commit c5473fec5c
18 changed files with 205 additions and 41 deletions

View File

@@ -53,7 +53,12 @@ async function seed() {
let passwordHash = await Bun.password.hash('password');
await db
.insert(schema.scorers)
.values({ id: crypto.randomUUID(), username: 'admin', passwordHash: passwordHash });
.values({
id: crypto.randomUUID(),
username: 'admin',
role: 'admin',
passwordHash: passwordHash
});
// Seed teams
const teamsCSV = readCSV('teams.csv');