fix: tenant dinamico desde BD - sin hardcodeo en frontend cliente

This commit is contained in:
2026-03-10 13:45:23 -06:00
parent 597286fff0
commit 6bc5145b9c
3 changed files with 36 additions and 23 deletions

View File

@@ -284,6 +284,7 @@ async def login(
"last_name": user.last_name,
"role": user.role,
"tenant_id": str(user.tenant_id),
"tenant_slug": tenant.slug if tenant else str(user.tenant_id),
"is_active": user.is_active,
"is_two_factor_enabled": user.totp_enabled or False,
"created_at": user.created_at.isoformat() if user.created_at else None