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:
@@ -37,7 +37,7 @@ class TenantModel:
|
||||
try:
|
||||
cursor.execute(
|
||||
'INSERT INTO tenants (id, name, username, password) VALUES (?, ?, ?, ?)',
|
||||
(tenant_id, name, 'admin', 'password')
|
||||
(tenant_id, name, 'admin', 'admin')
|
||||
)
|
||||
conn.commit()
|
||||
return TenantModel.get_by_id(tenant_id)
|
||||
|
||||
Reference in New Issue
Block a user