Fix default admin password for new tenants

Changed default password from 'password' to 'admin' to match the default username, allowing authentication to work immediately after tenant creation.
This commit is contained in:
2025-10-20 22:51:55 -04:00
parent 996ecacb40
commit 4f2dd12f23

View File

@@ -37,7 +37,7 @@ class TenantModel:
try: try:
cursor.execute( cursor.execute(
'INSERT INTO tenants (id, name, username, password) VALUES (?, ?, ?, ?)', 'INSERT INTO tenants (id, name, username, password) VALUES (?, ?, ?, ?)',
(tenant_id, name, 'admin', 'password') (tenant_id, name, 'admin', 'admin')
) )
conn.commit() conn.commit()
return TenantModel.get_by_id(tenant_id) return TenantModel.get_by_id(tenant_id)