Fix admin seed had no password

This commit is contained in:
Esa Kataja
2025-05-10 11:01:20 +03:00
parent 4a4eda09d1
commit 055dd3b43b
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ def seed_db() -> None:
# Seed Admin users
admin_username = os.getenv("ADMIN_USERNAME")
hashed_admin_password = hash_password(os.getenv("ADMIN_PASSWORD"))
hashed_admin_password = hash_password(os.getenv("ADMIN_PASSWORD", "password"))
with get_connection() as conn:
conn.execute(
'INSERT INTO "User" (username, hashed_password, team_id, is_active, is_admin) VALUES (?, ?, ?, ?, ?)',