diff --git a/login.php b/login.php index 9e2353c..05fa6ab 100644 --- a/login.php +++ b/login.php @@ -6,7 +6,6 @@ require_once __DIR__ . '/app/rate-limit.php'; $pdo = app_db_pdo(); $errors = []; $email = trim((string)($_POST['email'] ?? '')); -$tenantSlug = trim((string)($_POST['tenant_slug'] ?? '')); if ($_SERVER['REQUEST_METHOD'] === 'POST') { app_require_csrf(); @@ -17,11 +16,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (!$emailBucketOk || !$ipBucketOk) { $errors = ['Zu viele Anmeldeversuche. Bitte versuche es in einigen Minuten erneut.']; } else { + // Bewusst ohne Mandanten-Einschraenkung: gehoert die E-Mail zu + // mehreren Mandanten, uebernimmt mandant-auswahl.php die Auswahl per + // Klarnamen. Ein Kundenkuerzel muss dafuer niemand kennen. $result = saas_authenticate( $pdo, $email, - (string)($_POST['password'] ?? ''), - $tenantSlug + (string)($_POST['password'] ?? '') ); if ($result['ok'] && !empty($result['needs_tenant_selection'])) { @@ -96,10 +97,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { -
- - -