Fix domain name for tenant (this is no longer the shortName)

This commit is contained in:
Hendrik Belitz
2026-05-27 17:58:31 +02:00
parent ce0a0de5eb
commit a16573a94c
+2 -2
View File
@@ -206,11 +206,11 @@ export const POST: RequestHandler = async ({ request, cookies, getClientAddress,
const tenantService = await TenantAdminService.getTenantById(user.tenantId);
const tenant = tenantService.tenantData;
if (!tenant || tenant.shortName !== subdomain) {
if (!tenant || tenant.domain !== subdomain) {
logger.warn("Login attempt from wrong subdomain", {
userId: user.id,
email: user.email,
expectedSubdomain: tenant?.shortName,
expectedSubdomain: tenant?.domain,
actualSubdomain: subdomain,
tenantId: user.tenantId,
});