FIX Admin seed value
This commit is contained in:
+2
-1
@@ -80,12 +80,13 @@ def seed_db() -> None:
|
||||
hashed_admin_password = hash_password(os.getenv("ADMIN_PASSWORD"))
|
||||
with get_connection() as conn:
|
||||
conn.execute(
|
||||
'INSERT INTO "User" (username, hashed_password, team_id, is_active) VALUES (?, ?, ?, ?)',
|
||||
'INSERT INTO "User" (username, hashed_password, team_id, is_active, is_admin) VALUES (?, ?, ?, ?, ?)',
|
||||
(
|
||||
admin_username,
|
||||
hashed_admin_password,
|
||||
1,
|
||||
True,
|
||||
True,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user